then the variable $two_decimal_number will contain the number in the format you're looking for. You can then print it or manipulate it or whatever.$two_decimal_number = sprintf "%0.2f", $x;
In reply to Re: decimal point
by Bishma
in thread decimal point
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |