|
-
Nov 30th, 2006, 06:54 AM
#1
Thread Starter
Member
[RESOLVED] Data Type Problem
Hi,
When I multiply a variable of integer data type and a variable of single data type, the result isn't always the right one.
For example - 0.02 * 5 isn't 0.1, but 0.099999994.
Why does this happen? I've tried using double as well, but it's the same problem.
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
|