CompTIA ITF+ (FC0-U61) — Question 82

Which of the following BEST explains the use of float over integer to store monetary values?

Answer options

Correct answer: D

Explanation

The correct answer is D because float data types can store decimal values, which are necessary for accurately representing monetary amounts with cents. Options A and B are incorrect as they do not specifically relate to the need for decimal precision in currency. Option C is misleading since both float and integer can handle large values, but only float can handle decimals.