on 2010 Jul 01 3:58 AM
I'm curious about why the MONEY and SMALLMONEY domains have 4 decimal places instead of 2, as I use for columns representing dollars and cents. Were 4 decimal places used to represent stock prices to the 16th of a dollar? Is there an ISO standard representation of currency? Is it because other countries represent monetary amounts with 4 decimal places? Or is there some other reason why I should use the built-in domains even though I don't track fractions of a cent.
Request clarification before answering.
Ever been at a gas station, they always count at least 3 decimal places. But to be serious the more decimal places you use, the more accurate will be your results. And for calculations involving money the highest accurracy is desired. Why 4 digits, seems to be just a trade-off decision between accuracy and storage requirements for historical reasons. Other major database systems (SQL Server and Oracle) use also 4 decimals for money data types.
Anyway, the official fixed EURO exchange rates have had up to 6 decimal places.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
61 | |
8 | |
7 | |
6 | |
6 | |
4 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.