Which of the following statements is ? ( )
A: Java provides two primitive types for storing floating-point numbers in memory float and double.
B: A floating-point number is a number with a decimal point.
C: Variables of type float represent single-precision floating-point numbers and have seven significant digits.
D: Variables of type float represent double-precision floating-point numbers; these require twice as much memory as double variables.
A: Java provides two primitive types for storing floating-point numbers in memory float and double.
B: A floating-point number is a number with a decimal point.
C: Variables of type float represent single-precision floating-point numbers and have seven significant digits.
D: Variables of type float represent double-precision floating-point numbers; these require twice as much memory as double variables.
举一反三
- Floating point representation is used to store A: Boolean values B: whole numbers C: real numbers D: integers
- Any number that can be represented as a decimal fraction can be represented exactly in floating point representation in Python.
- The decimal number represented by IEEE single precision floating-point number 11000010010011111000000000000000 is—— A: -51.825 B: -50.625 C: 51.825 D: -103.75
- Floating-point values that appear in source code are known as floating-point literals and are type float by default. ( )
- For a floating vessel,the center of flotation is the point in the waterplane().