Casting double to ulong weirdness

via Digitalmars-d digitalmars-d at
Tue Aug 25 08:56:37 PDT 2015

On Tuesday, 25 August 2015 at 14:54:41 UTC, Steven Schveighoffer 
> 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.

«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