Which of the following will store the number 320000 as a Float number?

counPop = (float) 3.2e5;
counPop = (float) 3.2e6;
counPop = (float) .32e5;
counPop = (float) .32e7; E. counPop = (float) 3.2-e5;

The correct answer is A. counPop = (float) 3.2e5;

A floating-point number is a number that can have a decimal point. The number 320000 can be represented as a floating-point number by using the scientific notation 3.2e5. This means that the number is 3.2 times 10 to the power of 5, or 3.2 x 100000 = 320000.

The other options are incorrect because they do not represent the number 320000 as a floating-point number. Option B, counPop = (float) 3.2e6, represents the number 3200000. Option C, counPop = (float) .32e5, represents the number 3200. Option D, counPop = (float) .32e7, represents the number 3200000. Option E, counPop = (float) 3.2-e5, does not represent a valid number.

Exit mobile version