perl -e 'printf("%.2f\n", 1.255)'
-> 1.25
perl -e 'printf("%.2f\n", 1.455)'
-> 1.46
Although, there might be some option which jumps into the gap and helps to round the number?
In reply to Re^4: How to use the int-function?
by Anonymous Monk
in thread How to use the int-function?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |