📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

Why is DECIMAL preferred over FLOAT for money?

A. FLOAT cannot store large numbers
B. DECIMAL uses less storage always
C. FLOAT is slower to read
D. DECIMAL stores exact values while FLOAT may introduce rounding errors ✅

Correct Answer: D. DECIMAL stores exact values while FLOAT may introduce rounding errors

Explanation

  • DECIMAL gives exact decimal arithmetic, avoiding the rounding errors of binary floating-point.
  • Money calculations must be exact.