G'Day,
For the first time in 5 years I find it necessary to format $#####.## fields in Perl. How does one do it? My hard copy references are rather oblique in conveying usage of
"format =" and online refs refer to entirely other matters.
Simply, I wish to $TotalVal= $Quantity * $Price;
eg. $TotalVal = 5 * 5.50 should return 27.50 but alas returns 27.5. Is there a way of setting currency or at least deciding decimal significance in Perl? The result is to be shoved into html.
Much Obliged if any one can help.
abraxas
For the first time in 5 years I find it necessary to format $#####.## fields in Perl. How does one do it? My hard copy references are rather oblique in conveying usage of
"format =" and online refs refer to entirely other matters.
Simply, I wish to $TotalVal= $Quantity * $Price;
eg. $TotalVal = 5 * 5.50 should return 27.50 but alas returns 27.5. Is there a way of setting currency or at least deciding decimal significance in Perl? The result is to be shoved into html.
Much Obliged if any one can help.
abraxas