Usually when you are dealing with currency you will want to use DECIMAL. If you use DOUBLE you risk running into situations akin to those where people are sent bills for $0.00 (i.e. the database has stored a cumulated artihmetic result of, e.g., $0.00003267 or something and the program isn't aware it should write the tiny fraction off).
Main Topics
Browse All Topics





by: ivostoykovPosted on 2007-03-29 at 22:44:45ID: 18821750
Hello jericotolentino,
DECIMAL is exact numeric data types storing up to 65.30 numbers. The maximum number of digits for DECIMAL is 65. The maximum number of supported decimals is 30.
DOUBLE is approximate numeric data types. A double floating-point number is accurate to approximately 15 decimal places.
HTH,
!i!