how print out all digits after decimal point for a variable (data type double) in java?
Would like to print out max digits for a variable (data type double). For example,
double d1 = 100.01234567890123456789012345678901234567890123456789
double d2 = 2.0
How to print out d1/d2, which still keeps exact answer?
d1 = 1.0; d2 = 3.0
How to print out the digits of d1/d2 as many as possible for this data type?