What are the two parts of a value of type double?

Options
- Significant Digits, Exponent
- Length, Denominator
- Mode, Numerator


CORRECT ANSWER : Significant Digits, Exponent

Discussion Board
double type

double is 'data type' in java that contains 64 bits. It is numeric data type, it contain decimal numbers only which contain two parts: significant digit(mantissa) and exponent ..
eg.. double dl=123.456d; //variable declaration
nw 123.456=1.23456e2 OR 1.23456E2

baljeet 09-23-2014 11:16 AM

Double type

Double is the data type having double precision and consists of 64 bit floating point. This is the default data type used for decimal values. It has two parts Significant digits and exponent part.

Significant digit is the integer number for example 1, 123, 12345, etc. whereas exponent parts are 1*10^1, 123*10^4, etc.

It is not recommended to use this data type for precise values like currency,etc. It covers a range from 4.94065645841246544e-324d to 1.79769313486231570e+308d (positive or negative). Where the examples of double is given below:

Default value is 0.0d.

double d1 = 123.4

http://docs.oracle.com/javase/specs/jls/se7/html/jls-4.html#jls-4.2.3

Rohit Sharma 07-28-2014 02:27 AM

ans

The answer would be significant digits and exponent. But 'significant digits' would usually be named 'mantissa' or fraction. doubles in Java are represented in IEEE 754
Refer: http://en.wikipedia.org/wiki/Double-precision_floating-point_format

Nhung 01-24-2014 01:39 PM

desc

how it will be calculated explain?

jagadish 09-30-2013 02:09 PM

desc

describe trhis prob

Ishwar 09-29-2013 12:23 PM

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement