sorting failed error

monarch_dodra monarchdodra at gmail.com
Mon Jul 30 23:10:36 PDT 2012


On Monday, 30 July 2012 at 22:23:10 UTC, Timon Gehr wrote:
> On 07/30/2012 03:52 PM, monarch_dodra wrote:
>> ...
>> NaN then compares false with everything, making it 
>> un-transitive, and
>> potentially breaking your cmp. COuld you try the algo with 
>> "return
>> 1/(1+travelled)".
>>
>> That, or because of the non-deterministic nature  of floating 
>> point
>> calculation,
>
> Floating-point computation is deterministic.

Is this specific to D? Because it isn't in C++:

http://www.parashift.com/c++-faq-lite/floating-point-arith2.html


More information about the Digitalmars-d-learn mailing list