The NumericPicture class separates the formatting of a numeric value from its layout. The value specifies how many characters before and after the decimal place; the layout specifies the sign placement and padding. A numeric layout can be specified using five or fewer symbols as follows:
' ' == pad
's' == sign: "-" if negative, else ""
'S' == sign: "-" if negative, else " "
'+' == sign: "-" if negative, else "+"
'(' == sign: "(" if negative, else " "
')' == sign: ")" if negative, else " "
'N' == numeric
Examples: " sN", " (N)", "( N)", "s N", "NS"
©Copyright 2000, Rogue Wave Software, Inc.
Contact Rogue Wave about documentation or support issues.