Modify

Opened 4 years ago

Closed 4 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 Changed 4 years ago by jchd18

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 Changed 4 years ago by Jpm

I send a proposal for fixing it to Jon

comment:3 Changed 4 years ago by jchd18

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

comment:4 Changed 4 years ago by Jpm

  • Resolution set to Duplicate
  • Status changed from new to closed

true I will close it as duplicate

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as closed The ticket will remain with no owner.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.