FormatPercent
Function | Parameters | Return value |
---|---|---|
FormatPercent |
object value |
string |
Formats the specified value as a percent, using the Windows regional settings.
Example:
FormatPercent(0.15) = "15.00%"
Function | Parameters | Return value |
---|---|---|
FormatPercent |
object value,``int decimalDigits |
string |
Formats the specified value as a percent. The "decimalDigits" parameter indicates how many places are displayed to the right of the decimal.
Example:
FormatPercent(0.15, 0) = "15%"