The standard input rules for converting money values are as follows:
Any leading blanks are skipped.
Thousands group characters are skipped.
Decimal separator character is translated.
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).