Google News
logo
MySQL - Quiz(MCQ)
Which datatype is best suited to store currency values?
A)
INT
B)
FLOAT
C)
DOUBLE
D)
DECIMAL

Correct Answer :   DECIMAL


Explanation : Currency is a numeric information. For monetary calculations, FLOAT and DOUBLE are subject to rounding error and may not be suitable. A DECIMAL(M, 2) type is best suited for it.

Advertisement