NUMBERFMT Structure
Type NUMBERFMT
NumDigits As Long
LeadingZero As Long
Grouping As Long
lpDecimalSep As String
lpThousandSep As String
NegativeOrder As Long
End Type
Description & Usage
The NUMBERFMT structure stores information about how to format a regular number for display. This structure allows a program to specify how it wants a number to be displayed, overriding the format used by a locale.
Visual Basic-Specific Issues
None.
Data Members
- NumDigits
- The number of digits to display after the decimal point.
- LeadingZero
- If zero, do not pad the space to the right of the decimal point with zeros if there are fewer fractional digits than specified by NumDigits. If nonzero, then do pad the space. For example, if NumDigits is 3 and the number to display is 1.23, setting this data member to zero displays the number as "1.23". Setting this data member to any other value displays "1.230".
- Grouping
- The number of digits to include in each group to the left of the decimal point. Typically, groups of three are used (e.g., 1,234,567). Values in the range of 0-9 are valid.
- lpDecimalSep
- The character to use for the decimal point.
- lpThousandSep
- The character to use for the grouping separator.
- NegativeOrder
- One of the following values specifying how to represent a negative number. An example of each is shown in the list below for the number -1.1.
- 0
- (1.1)
- 1
- -1.1
- 2
- - 1.1 (space after the - sign)
- 3
- 1.1-
- 4
- 1.1 - (space before the - sign)
Used By
GetNumberFormat
Back to the Structure list.
Back to the Reference section.
Last Modified: April 16, 2000
This page is copyright © 2000 Paul Kuliniewicz.
Copyright Information Revised October 29, 2000
Go back to the Windows API Guide home page.
E-mail: vbapi@vbapi.com Send Encrypted E-Mail
This page is at http://www.vbapi.com/ref/n/numberfmt.html