Float compare broke!

Era Scarecrow rtcvb32 at yahoo.com
Mon Jun 11 13:28:04 PDT 2012


On Monday, 11 June 2012 at 12:54:37 UTC, Adam D. Ruppe wrote:
> a == b is probably done by the bits at runtime which match
> because it is the same assignment.
>
> But a == i_f might be propagated down there as 80 bit compared
> to 32 bit and thus be just slightly different.

  Unfortunately I used FloatRep and printed out the exponent and 
fractions, and they were identical (false, 128, 4788187).

  Besides, shouldn't the same types do a direct bit-wise copy?


More information about the Digitalmars-d-learn mailing list