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
)
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
- 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:
StringFormatted 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