There's a companion to the printf function that you can use to format a value, and assign that value to another scalar: sprintf. Here's a quick example:<br><FONT FACE=monospace><br>$Value = 3.141579; # Whatever ;^)<br><br>$Rounded = sprintf("%1.1f", $Value);<br><br>print "Original: ", $Value, "\n";<br>print "Rounded: ", $Rounded, "\n";<br></font> <p> <br><a href=mailto: > </a><br><a href= > </a><br>--<br>
0 1 - Just my two bits