|
-
Oct 2nd, 2006, 10:26 AM
#1
Thread Starter
Fanatic Member
Possible Loss of Precision
Say you have:
balance = balance + interestRate / 100.0 / 12.0 * balance;
Where balance is an int, and interestRate is a double. This will give a "possible loss of precision error." However say you're given:
balance += interestRate / 100.0 / 12.0 * balance;
This will not give output any warnings... my question is just "Why?"
"X-mas is 24.Desember you English morons.." - NoteMe
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|