Click or drag to resize

ILocaleFormatNumber Method


Converts the value of the number provided to its equivalent string representation using the culture-specific format information.

Namespace:  Ingeniux.CMS
Assembly:  Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.6.308
Syntax
string FormatNumber(
	double number,
	bool asCurrency
)

Parameters

number
Type: SystemDouble
The number to be formatted
asCurrency
Type: SystemBoolean
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

Type: String
Formatted string of given number
Examples
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