What I find interesting is that perl is able to do the math correctly on the large number, but is unable to display it. If anything, I'd expect the opposite behavior (being able to print, but not being able to do arithmetic on it). Thoughts?perl -e '$a = 4_294_967_296;printf("%d %f\n", $a, $a / (1024**3))'
Just curious,
thor
In reply to Arithmetic on numbers bigger than 1<<31 by thor
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |