print 02.5, "\n"; print 02.9, "\n"; print 025, "\n";
Prints:
25 29 21
Which I found somewhat surprising! Should I be surprised?
Yes, I know the leading 0 digit denotes an octal value. But that doesn't account for 02.5 == 25 or 02.9 == 29 does it?
I was somewhat fortunate. This unexpected result could have been somewhat louder than it actually was. 25 Amps is not at all the same thing as 2.5 Amps! Fortunately the current was limited to 5 Amps!
In reply to 02.5 == 25 - WTF? by GrandFather
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |