FormatFloat  Global

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)

Parameters

valueThe value.Required

Return value

The FormatFloat function returns the string value.

Example

// Default US Region
str = FormatFloat(1500.123)
MessageBox(str) // "1,500.12"
SECCIA Documentation - Copyright © 2001-2009 Sylvain Seccia