$ perl -e 'printf "%.15f\n", 35784.45 * 100' 3578444.999999999534339
See What every computer scientist should know about floating-point arithmetic for explanation.
int just removes the part after the dot (for positive numbers, at least). Its documentation contains a list of functions you can use to get more pleasant results.
In reply to Re: Strange int() result
by choroba
in thread Strange int() result
by menth0l
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |