ILocaleFormatNumber Method
|
Converts the value of the number provided to its equivalent
string representation using the culture-specific format
information.
Namespace: Ingeniux.CMSAssembly: Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.6.492
Syntaxstring FormatNumber(
double number,
bool asCurrency
)
Function FormatNumber (
number As Double,
asCurrency As Boolean
) As String
String^ FormatNumber(
double number,
bool asCurrency
)
abstract FormatNumber :
number : float *
asCurrency : bool -> string Parameters
- number Double
- The number to be formatted
- asCurrency Boolean
- Whether or not to return the currency format of the number. Note that the currency symbol is specific to the region specified in this locale.
Return Value
StringFormatted string of given number
Example
If the locale is "en-us", the number 1234.56 is formatted as "1,234.56", but under "it-it", it's formatted as "1.234,56", the European format.
See Also