SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftMask/OCX 7.0 - Masked Edit Control
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftPrintPreview/DLL 2.0 - Print Preview Control (discontinued)
SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftDirectory 3.5 - File/Folder Control (discontinued)
SftMask/OCX 7.0 - Masked Edit Control
SftOptions 1.0 - Registry/INI Control (discontinued)
SftPrintPreview/OCX 1.0 - Print Preview Control (discontinued)
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftTabs/NET 6.0 - Tab Control (discontinued)
SftTree/NET 2.0 - Tree Control
Converts a value into a displayable number.
VB.NET | object.FormatNumberV(ByVal Val As Double, ByVal FracDigits As Short, ByVal LeadZero As Short, ByVal Grouping As Short, ByVal DecimalSep As String, ByVal ThousandSep As String, ByVal NegativeOrder As Short, ByRef Text As Object) |
VB | object.FormatNumberV(ByVal Val As Double, ByVal FracDigits As Integer, ByVal LeadZero As Integer, ByVal Grouping As Integer, ByVal DecimalSep As String, ByVal ThousandSep As String, ByVal NegativeOrder As Integer, Text As Variant) |
C#.NET | void object.FormatNumberV(double Val, short FracDigits, short LeadZero, short Grouping, string DecimalSep, string ThousandSep, short NegativeOrder, out object Text); |
VC++ | HRESULT object->FormatNumberV(double Val, short FracDigits, short LeadZero, short Grouping, _bstr_t DecimalSep, _bstr_t ThousandSep, short NegativeOrder, const _variant_t&* Text); |
C | HRESULT object->raw_FormatNumberV(double Val, short FracDigits, short LeadZero, short Grouping, BSTR DecimalSep, BSTR ThousandSep, short NegativeOrder, VARIANT* Text); |
object
Val
A Double. This value is formatted as a string using the provided attributes and returned in Text.
FracDigits
The number of desired fractional digits (0-99) or -1. If -1 is specified, the user locale is used (see GetLocaleInfo, LOCALE_IDIGITS).
LeadZero
1 if leading zeros are desired, otherwise 0. If -1 is specified, the user locale is used (see GetLocaleInfo, LOCALE_ILZERO).
Grouping
Specifies the size of each group of digits to the left of the decimal point (0-9). If -1 is specified, the user locale is used (see GetLocaleInfo, LOCALE_SGROUPING).
DecimalSep
The decimal separator string (up to four characters). If an empty string is specified, the user locale is used (see GetLocaleInfo, LOCALE_SDECIMAL).
ThousandSep
The thousands (group) separator string (up to four characters). If an empty string is specified, the user locale is used (see GetLocaleInfo, LOCALE_STHOUSAND).
NegativeOrder
The display mode for negative values (0-4). If -1 is specified, the user locale is used (see GetLocaleInfo, LOCALE_INEGNUMBER).
NegativeOrder | Example | Description |
---|---|---|
-1 | The user locale is used (see GetLocaleInfo, LOCALE_INEGNUMBER) | |
0 | (1.1) | Left parenthesis, number, right parenthesis |
1 | -1.1 | Negative sign, number |
2 | - 1.1 | Negative sign, space, number |
3 | 1.1- | Number, negative sign |
4 | 1.1 - | Number, space, negative sign |
Text
The formatted string is returned in the Text argument.
The FormatNumberV method converts a value into a displayable number.
Calculator.FormatCurrency is used to format numbers with currency attributes.
Calculator.FormatNumberV is used for languages such as VBScript, which are limited by requiring Variant arguments and do not support strongly typed arguments for return values. For more information please see Using SftMask/OCX with Internet Explorer.
See Also SftMaskCalculator Object | Object Hierarchy