Forum Stats

  • 3,783,718 Users
  • 2,254,822 Discussions
  • 7,880,518 Comments

Discussions

Issue with Java Calculations

HI

we have a piece of codebase which does basic division calculations of double values with either numeral (21 or 22) . For example

  1. 7341.25/22
  2. 8470.56/21

In case 1 the ouput is coming as

  1. 333.69
  2. 403.35

I would like to know in case of pt 2 the output expected is 403.36 instead of 403.35

We are using java 1,8 version in the code base