Modify

Opened 6 years ago

Closed 6 years ago

#3770 closed Bug (Duplicate)

Invalid calculation when using exponential form

Reported by: anonymous Owned by:
Milestone: Component: AutoIt
Version: 3.3.14.0 Severity: None
Keywords: Cc:

Description

This mathematical expression returns into error:

$t=3e5+5e3

But this works fine:

$t=(3e5)+5e3

As well as this:

$t=3e5 +5e3

The difference between examples makes clear to understand the reason of error. Wrong interpretation of exponential form of a number if not using spaces or brackets for mathematical operation.

Attachments (0)

Change History (4)

comment:1 by jchd18, 6 years ago

Bug confirmed in 3.3.15.1 & 3.3.15.3

"C:\...\test.au3" (1) : ==> Unknown function name.:
$t=3e5+5e3
$t=3e5+5^ ERROR

Also:

C:\...\test.au3 (1) : ==> Unable to parse line.: 
$t=3e5+ 5e3 
$t=3e5+^ ERROR

comment:2 by J-Paul Mesnage, 6 years ago

I send a proposal for fixing it to Jon

comment:3 by jchd18, 6 years ago

Maybe this could be merged in a fix for #3232 as well.

comment:4 by J-Paul Mesnage, 6 years ago

Resolution: Duplicate
Status: newclosed

true I will close it as duplicate

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.