[Solved] Big double number up to two decimal places [closed]
The number is being rounded up correctly The scientific notation 1.13452289575668E8 means 1.3 x 108 which is 113452289.5756680071353912353515625 double d = 1.13452289575668E8; System.out.println(new BigDecimal(d)); gives 113452289.5756680071353912353515625 round to 2 decimal places is 113452289.58 2 solved Big double number up to two decimal places [closed]