Friday, January 30, 2009

String Format

C

Local currency format.

 

D

Decimal format. Converts an integer to base 10, and pads with leading zeros if a precision specifier is given

E

Scientific (exponential) format. The precision specifier sets the number of decimal places (6 by default). The case of the format string (e or E) determines the case of the exponential symbol

F

F Fixed-point format; the precision specifier controls the number of decimal places. Zero is acceptable

G

General format. Uses E or F formatting, depending on which is the most compact.

 

N

Number format. Formats the number with commas as thousands separators, for example 32,767.44.

 

P

Percent format.

 

X

Hexadecimal format. The precision specifier can be used to pad with leading zeros.

 

 


No comments:

Post a Comment