I am experiencing a problem in Double value manipulation.
Lets take,
Double d = new Double(123456789987654321123456789d);
System.out.println(d);
The output is :
1.2345678912345678E35
But I want,
123456789987654321123456789
The complete digit without any notation.
I have tried all permutation using BigDecimal
, BigInteger
and so and so.
Note: I want to populate into JSON so please don't suggest just a print
statement.
I have already read :