Re: [Flashforth-devel] Floating point math for FF 5.x - special values
Brought to you by:
oh2aun
From: om1zz <om...@vo...> - 2015-05-15 22:14:18
|
We have problems with large numbers and alike results, it seems. This test which worked with amforth crashes fs. : \ large positive and negative $ffff $ff7f fs. ." shall be -3.402823466e+38 " cr $ffff $7f7f fs. ." shall be 3.402823466e+38 " cr Moreover all tests where the result is undefined, and usualy returned above numbers (with my amforth asm float lib), returns now 0xffff 0x7fff from xc16 float, for example: f-1.0 flog ok<#,ram> 65535 32767 fpi/2 fasin ok<#,ram> 65535 32767 fpi/2 facos ok<#,ram> 65535 32767 what crashes fs. as well. So we must rethink how to print these states. i. |