URL:
  <http://savannah.gnu.org/bugs/?50221>

                 Summary: FP operations produce unexpected NaNs
                 Project: Gforth
            Submitted by: None
            Submitted on: Fri Feb  3 14:21:13 2017
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

Floating point results having a mantissa consisting of FFFF....FFFF or
FFFF....FFFE are considered not a number.

An example calculation triggering this:

1 53 lshift 1 - s>f
1 53 lshift     s>f f/
f.

Prints  ":" (ie. NaN)

(Other, less artificial examples trigger this behaviour too - i originally
encountered the bug when approximating an integral, where the result was ok
unless i used a higher precision which yielded a result very close to 1.0).





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?50221>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/


_______________________________________________
bug-gforth mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-gforth

Reply via email to