From: pito <pi...@vo...> - 2010-08-30 21:46:45
|
Leon, I think there is an issue with negative numbers: > -1 s>f fconstant _-1 >>>> define 1.0 ok > 1 s>f fconstant _1 >>>> define -1.0 ok > _1 _pi f* _1e4 f* f>s . >>>> 1.0 * pi * 1.0E4 = 31415 31415 ok > _-1 _pi f* _1e4 f* f>s . >>>>> -1.0 * pi * 1.0E4 = -31426 -31426 ok > It cannot be caused by of a rounding error accumulating or loosing a valid digits. Some minor bug somewhere.. P. > > Ok, that bug should be fixed -- the new version > > of > > > the code is up on > > > > http://github.com/lnmaurer/amforth-float > > > > Below are some of Pito's examples -- now > > working. |