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.492
Syntax
string FormatNumber(
	double number,
	bool asCurrency
)

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

String
Formatted 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