FormatPercent
The FormatPercent function will convert a floating point
number in the range of 0.0 to 1.0 and convert it into a percentage
value in the range of 0.00% to 100.00%.
This function will always place two digits after the decimal point
unless otherwise specified in the second argument.
Response.Write "FormatPercent(0.5443) = " & FormatPercent(0.5443) Response.Write "FormatPercent(-0.5443) = " & FormatPercent(-0.5443)
' define the number of digits after the decimal point
Response.Write "FormatPercent(0.5443, 4) = " & FormatPercent(0.5443, 4)
|
 |

|