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 "return1/(1+travelled)".That, or because of the non-deterministic nature of floating pointcalculation,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