Casting double to ulong weirdness
via Digitalmars-d
digitalmars-d at puremagic.com
Tue Aug 25 08:56:37 PDT 2015
On Tuesday, 25 August 2015 at 14:54:41 UTC, Steven Schveighoffer
wrote:
> As bachmeier says, it's not something that's easy to get right.
Are you sure you follow IEEE 754 recommendations? Floating point
arithmetics should be reproducible according to the chosen
rounding mode.
https://en.wikipedia.org/wiki/IEEE_floating_point#Reproducibility
«The reproducibility clause recommends that language standards
should provide a means to write reproducible programs (i.e.,
programs that will produce the same result in all implementations
of a language), and describes what needs to be done to achieve
reproducible results.»
More information about the Digitalmars-d
mailing list