|
|
| Pathologically Eclectic Rubbish Lister | |
| PerlMonks |
Re^2: Behaviour of int() unexpectedby ForgotPasswordAgain (Vicar) |
| on Mar 11, 2025 at 17:45 UTC ( [id://11164249]=note: print w/replies, xml ) | Need Help?? |
|
Or use '%.0f' instead of '%d': perl -Mstrict -wE'my $val = 8.95; printf("%.0f\n", 100*$val);'
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||