A floating-point puzzle

bearophile bearophileHUGS at lycos.com
Wed Aug 5 05:06:43 PDT 2009


Lars T. Kyllingstad:
> (I am especially puzzled by the line after l.20. How can this test ever 
> be true? Is the fact that the 1 in l.20 is an integer literal significant?)

Generally double.inf+1 == double.inf
Inspecting the run time values inside a direct translation may give you clues.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list