Opened on Dec 1, 2008 at 4:19:10 AM
Closed on Dec 1, 2008 at 7:53:10 AM
Last modified on Dec 1, 2008 at 7:56:20 AM
#716 closed Bug (No Bug)
decimal subtraction bug
| Reported by: | mmavipc | Owned by: | |
|---|---|---|---|
| Milestone: | Component: | AutoIt | |
| Version: | 3.2.12.1 | Severity: | None |
| Keywords: | Cc: |
Description
MsgBox(0,"",7.04-7 & " " & 8.04-8)
7.04-7=0.04
8.04-8=0.0399999999999991
hmm I wonder that is wrong with that
Attachments (0)
Change History (3)
comment:1 by , on Dec 1, 2008 at 5:00:02 AM
| Severity: | Blocking → None |
|---|
comment:2 by , on Dec 1, 2008 at 7:53:10 AM
| Resolution: | → No Bug |
|---|---|
| Status: | new → closed |
Replying to mmavipc:
MsgBox(0,"",7.04-7 & " " & 8.04-8)
7.04-7=0.04
8.04-8=0.0399999999999991
hmm I wonder that is wrong with that
Nothing is wrong with it. Just like #715, this is not a bug. Floating point numbers are not precise. There is a ton of literature on the internet about it. I've explained it countless times.
comment:3 by , on Dec 1, 2008 at 7:56:20 AM
Since I found one of the threads where I explain it, here is the link.

Automatic ticket cleanup.