use POSIX; print int(0.6505 / 0.0001); print "\n"; print sprintf("%d", 0.6505 / 0.0001); [download]
In reply to finding the correct integer by YarNik