bigforth  

[bigforth] float.fb NAN

Sergey Plis
Fri, 22 Feb 2008 09:39:46 -0800

Sometimes I need to pass NAN to a function in C library. Bigforth's float.fb does not provide me with such constant. I am emulating the needed behaviour with:

: NAN ( -- f: NAN) $7FC00000 sp@ sf@ drop ;


May be it is worthwhile adding the functionality to float.fb?

Thanks!

--
Sergey

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  • [bigforth] float.fb NAN Sergey Plis