In This Topic
Formats a value using the specified numeric formatting options.
Syntax
'Declaration
Public Shared Function FormatNumberValue( _
ByVal As System.Double, _
ByVal As System.Integer, _
ByVal As Field.NumberSeparatorStyle, _
ByVal As Field.NumberNegativeStyle, _
ByVal As System.String, _
ByVal As Field.CurrencySymbolStyle _
) As System.String
public static System.string FormatNumberValue(
System.double ,
System.int ,
Field.NumberSeparatorStyle ,
Field.NumberNegativeStyle ,
System.string ,
Field.CurrencySymbolStyle
)
Parameters
- value
- The value to format.
- decimalPlaces
- The number of digits that appear to the right of the decimal point. Valid values are from 0 to 10, inclusive.
- separatorStyle
- The placement of commas and periods, see Field.NumberSeparatorStyle.
- negativeStyle
- How negative numbers are displayed.
- currencySymbol
- The currency symbol, or a null reference (Nothing in Visual Basic) or empty string.
- currencySymbolStyle
- The location of the currency symbol in relation to the number. This parameter is meaningful only if is not a null reference (Nothing in Visual Basic) or empty.
See Also