13.3.5 Money Values

The standard input rules for converting money values are as follows:

gifs/20000000.gif Any leading blanks are skipped.

gifs/20000000.gif Thousands group characters are skipped.

gifs/20000000.gif Decimal separator character is translated.

gifs/20000000.gif Any other non-digit character terminates translation.

After all of the digits have been processed, a check is made to see if the decimal separator was in the input string. An input string lacking the decimal separator is treated as having an implied number of decimal places (2 for U.S.A, none for Italy, etc.). Then it is scaled by the number of decimal places parameter (i.e., a U.S.A. money value of 1.00 is multiplied by 100 to get pennies).