That's decimal logic not binary.
Number crunching in decimal is a waste of digital resources.°
And 10 is not a universal constant, just the number of the long things we use to hold our hamburgers.
See also:
for a more detailed discussion.
°) Unless you invent affordable micro transistors with 10-ary states.
Cheers Rolf
(addicted to the Perl Programming Language :)
see Wikisyntax for the Monastery
In reply to Re^3: Behaviour of int() unexpected
by LanX
in thread Behaviour of int() unexpected
by ceade1000
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |