use warnings; use strict; $a=5.10; $b=$a*100; printf("%d\n",$b); my $x=sprintf("%d\n",$b); print $x; __END__ 509 509