[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-gforth] [bug #50221] FP operations produce unexpected NaNs

From: anonymous
Subject: [Bug-gforth] [bug #50221] FP operations produce unexpected NaNs
Date: Fri, 3 Feb 2017 14:21:14 +0000 (UTC)
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/602.4.8 (KHTML, like Gecko) Version/10.0.3 Safari/602.4.8


                 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



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/

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:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]