Forum Stats

  • 3,723,348 Users
  • 2,244,533 Discussions
  • 7,850,425 Comments

Discussions

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

issue with java calculator logic

HI

I am having a piece of code which does a simple division operation on double values . For example

  • 532/21 (25.33)
  • 8,470.56/21  (403.35)

The same can be verified with the sample java calculator downloaded from java tutorials website . I would like to know why there is a change in behaviour as in case 2 it should come as 403.36 instead of 403.55

Regards

Arun

Answers

Sign In or Register to comment.