Do you know where your variables are? | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Seems like the conversion glitch could be happening at several places. Maybe the initial assignment of float foo needs a cast. MSVC warns about loss of precision in such cases -- maybe it's serious. :)
As a workaround, perhaps you could truncate the initial assignment of the double:
Lastly, maybe something is awry in the conversions that are being done during the comparison -- like it's ignoring your cast. It's a stab in the dark, but maybe a hack like this would get it to pay attention:
PS: This is relevant to the work I do ensuring Windows compatibility for my XS distros.
--
Marvin Humphrey In reply to Re: [Win32, C, and way OT] C floats, doubles, and their equivalence
by creamygoodness
|
|