DigitalFusion
03-02-2006, 01:21 AM
Hey all,
I need to have a function that returns the value of a string (which is made of all numbers) in a 000.00 format. For example, if the str is "48" then I need it to return 048.00. My current function doesnt really do this as I am just using FormatNumber()
Function Meas(str)
if str <> "" then response.write FormatNumber(str,2)
End Function
How can I go about easily formatting this number without writting a buncha If/Then statements?
I need to have a function that returns the value of a string (which is made of all numbers) in a 000.00 format. For example, if the str is "48" then I need it to return 048.00. My current function doesnt really do this as I am just using FormatNumber()
Function Meas(str)
if str <> "" then response.write FormatNumber(str,2)
End Function
How can I go about easily formatting this number without writting a buncha If/Then statements?