The FormatFloat function formats a float value as a string by using the current regional settings of the operating system.
You can change the regional format with SetRegionalFormat.
Syntax
String Global.FormatFloat(
Float value)
Float value)
Parameters
| value | The value. | Required |
|---|
Return value
The FormatFloat function returns the string value.
Example
// Default US Region
str = FormatFloat(1500.123)
MessageBox(str) // "1,500.12"
str = FormatFloat(1500.123)
MessageBox(str) // "1,500.12"