more useful options | |
PerlMonks |
Re^3: Detecting whether UV fits into an NVby syphilis (Archbishop) |
on Feb 27, 2020 at 05:57 UTC ( [id://11113471]=note: print w/replies, xml ) | Need Help?? |
I think that checking whether the UV arg == (UV)((NV)arg) is a splendid idea Unfortunately this check fails for some UV values with less recent Microsoft Compilers - eg Visual Studio 2010 and earlier. No problems with Visual Studio 2017 and Visual Studio 2019. I suspect that Visual Studio 2015 is the oldest Microsoft Compiler that doesn't suffer from this problem, but I haven't confirmed that. This particular issue looks like another manifestation of the problem that sent me down this path in the first place. Here's the demo I ran:
Cheers, Rob
In Section
Seekers of Perl Wisdom
|
|