Modify

#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 TicketCleanup, on Dec 1, 2008 at 5:00:02 AM

Severity: BlockingNone

Automatic ticket cleanup.

in reply to:  description comment:2 by Valik, on Dec 1, 2008 at 7:53:10 AM

Resolution: No Bug
Status: newclosed

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 Valik, on Dec 1, 2008 at 7:56:20 AM

Since I found one of the threads where I explain it, here is the link.

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.