Computer Science, asked by devkeshri88, 8 months ago

Which of the following type is an exact representation of fractional values:

a. char b. double c. byte d. Strin​

Answers

Answered by roshanyadav738949
3

Answer:

double

Explanation:It is opporopirate to print the faction value.

                      It is able to print the exact value at 15 decimal point.

                       i.e.  1.7E +/- 308 (15 digits)

      Thank u..

                     

Answered by aditijaink283
2

Answer:

The correct answer to the given question is:

b. double

Explanation:

double: A double-precision 64-bit IEEE 754 floating point is the double data type. The Java Language Specification's Floating-Point Types, Formats, and Values section contain information about its range of values, which is outside the purview of this discussion.  This data type is typically the default option for decimal values. This data type should never be used for precise quantities like currency, as was already indicated.

For negative values, the double range is from -1.79769313486231E308 to -4.94065645841247E-324.

For positive values, the range is 4.94065645841247E-324 to 1.79769313486232E308.

The number sign (#) serves as the type-declaration symbol for Double.

We favor double over float for storing huge numbers because double is more exact.

#SPJ3

Similar questions