in reply to decimal placement
Or, if you need to use a so-formatted string representation of your floating point number for something else:printf "%.02f\n", $float
Read up on s?printf in the doc for a full description of what you can do with the formatting string (the %.02f part of the above examples).$string = sprintf "%.02f", $float
|
|---|