Which data type stores decimal numbers?

Study for the End of Year 8 Computer Science Test. Prepare with flashcards and multiple choice questions, each with hints and explanations. Get ready for your exam!

Multiple Choice

Which data type stores decimal numbers?

Explanation:
Decimal numbers store numbers with fractional parts, which is what you need when you work with values like 3.14 or -2.5. These are typically called floating-point or real numbers. Whole numbers store integers only, so they can’t represent decimals. Text holds letters and symbols, not numeric values. True/False stores boolean values. So the data type that handles decimal numbers is the decimal numbers type.

Decimal numbers store numbers with fractional parts, which is what you need when you work with values like 3.14 or -2.5. These are typically called floating-point or real numbers. Whole numbers store integers only, so they can’t represent decimals. Text holds letters and symbols, not numeric values. True/False stores boolean values. So the data type that handles decimal numbers is the decimal numbers type.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy