|
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 |
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/
[Prev in Thread] | Current Thread | [Next in Thread] |