[Issue 14] ARM: runnable/testmath.d Arm not precise enough?

gdc-bugzilla at gdcproject.org gdc-bugzilla at gdcproject.org
Tue Sep 25 05:13:08 PDT 2012


http://gdcproject.org/bugzilla/show_bug.cgi?id=14

--- Comment #1 from Johannes Pfau <johannespfau at gmail.com> 2012-09-25 12:13:08 UTC ---
What is this test supposed to do?

----
    int exp;
    real mantissa = frexp(123.456, exp);
    assert(equals(mantissa * pow(2.0L, cast(real)exp), 123.456, 19));
----
equals: x = 67.456
equals: y = 123.456
equals: ndigits = 19
bufx = '67.45600000000000307'
bufy = '123.4560000000000031'
core.exception.AssertError at testmath.d(170): Assertion failure

-- 
Configure issuemail: http://gdcproject.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all issue changes.


More information about the D.gnu mailing list