Casting double to ulong weirdness

bachmeier via Digitalmars-d digitalmars-d at puremagic.com
Tue Aug 25 18:40:44 PDT 2015


On Tuesday, 25 August 2015 at 23:09:07 UTC, Ola Fosheim Grøstad 
wrote:
> On Tuesday, 25 August 2015 at 20:00:11 UTC, bachmeier wrote:
>> to the next, we have reproducibility. In many cases though, 
>> reproducibility doesn't mean exact reproducibility, at least 
>> in the old days it didn't, due to floating point issues. You 
>> generally want to allow for replication of the results using 
>> other languages, so you have to allow for some differences.
>
> You don't get portable results for some builtin float 
> functions, but otherwise I believe the 2008 edition of IEEE is 
> exact. Latest version of ECMAScript also use the 2008 version 
> of IEEE.

I haven't looked at any of this in years. It sounds like the 
situation is better now.


More information about the Digitalmars-d mailing list