Leon Maurer <leon.mau...@gmail.com>
writes:

> I might have a chance to look at it this weekend, but don't hold your
> breath. Could you fully explain what you're doing, what result you expect,
> and what result you get? (Don't expect the bits to look the same as in the
> wikipedia example.)
> -Leon

Hi Leon,

As previously stated amforth-shadow will have float as a lib
submodule. While typical applications use fixed point arithmetic where
floating-point is very useful is in setting up the parameters by the
user (think about a PID control loop where the user supplies the
Proportional, Integral and Derivative factors stated in real engineering
units).

I can see that your lib works, for example:

> 0 $3f80 f.
1.00000  ok

> 0 $3f80 fdup f+ f.
2.00000  ok

but something is wrong with >float

> pad 10 accept pad swap >float .s
1.0
#3 0 0 -1  ok

By the way, if you wish to combine Python + AmForth fun I suggest adding
to Keith Amidon's amforth-shell.py interactive terminal
capabilities. Python THREADING module is suggested to handle the common
serial I/O and CURSES is suggested to easily implement a 25x80 VT100
compatible virtual screen.

Regards, Enoch.







------------------------------------------------------------------------------
Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works. 
Faster operations. Version large binaries.  Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
_______________________________________________
Amforth-devel mailing list for http://amforth.sf.net/
Amforth-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amforth-devel

Reply via email to