This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Cattle Drive and the fly likes I know I'm being lazy but... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » This Site » Cattle Drive
Reply locked New topic
Author

I know I'm being lazy but...

Richard Gibson
Greenhorn

Joined: Mar 16, 2000
Posts: 9
with the following code for assignment 1.7 I get the following:
sum = 99.9999999999986
Just tell me to go to another forum or whatever (incidentally: should these questions come here or to Java Beginners? I'm all over the place :confused but...0.1 * 1000 = 100. I suppose the if statement is to show that in this case it isn't so...?
here is the code:

CODE DELETED


[This message has been edited by Paul Wheaton (edited March 20, 2000).]
paul wheaton
Trailboss

Joined: Dec 14, 1998
Posts: 20494
    ∞

Richard,
I deleted the code you posted because I don't want you giving away the answers to future cattle drive participants.
The code in assignment 1.7 is pretty easy. The hard part is the part you are struggling with now.
Why did it not add up?
This particular question is one that we need to cover by e-mail instead of here, so I'm going to lock this thread. Send me e-mail at paulwheaton@yahoo.com


permaculture Wood Burning Stoves 2.0 - 4-DVD set
 
 
subject: I know I'm being lazy but...
 
Similar Threads
Java Programming Style Guide
A BIG 'OL THANK YOU TO MARILYN FOR NITPICKING MY CODE
Cannot compile servlet
Exam Question
Wrapping chars in array