Skip to Main Content

Java User Groups

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Issue with Java Calculations

d09aa8c0-578b-49c6-adee-d56c8e6bec47May 2 2019 — edited May 2 2019

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

Comments

Post Details

Added on May 2 2019
0 comments
246 views