File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 20271
    ∞

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: I know I'm being lazy but...
 
Similar Threads
Exam Question
Java Programming Style Guide
Cannot compile servlet
A BIG 'OL THANK YOU TO MARILYN FOR NITPICKING MY CODE
Wrapping chars in array