Meaningless Drivel is fun!
The moose likes Java in General and the fly likes Double values addition Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Double values addition" Watch "Double values addition" New topic

Double values addition

Vijay Chandran
Ranch Hand

Joined: Jan 07, 2007
Posts: 186

Dear friends,

I have written this code. Actually, this is a part of my application:

Its printing an incorrect value. The output must be 2000.09.
Please help me.

Peter Chase
Ranch Hand

Joined: Oct 30, 2001
Posts: 1970
Beginner question, not Intermediate. Anyway, see this recent thread.

Betty Rubble? Well, I would go with Betty... but I'd be thinking of Wilma.
I agree. Here's the link:
subject: Double values addition
It's not a secret anymore!