Modify

Opened 17 years ago

Closed 17 years ago

#928 closed Bug (No Bug)

Using the power operator casts to int32

Reported by: monoceres Owned by:
Milestone: Component: AutoIt
Version: 3.3.0.0 Severity: None
Keywords: Cc:

Description

Well maybe this is not a bug, but isn't this behaviour strange since the power to operator itself isn't limited to 32 bits?

MsgBox(0,"",Hex(57005*65536))
MsgBox(0,"",Hex(57005*(16^4)))

Attachments (0)

Change History (1)

comment:1 by J-Paul Mesnage, 17 years ago

Resolution: No Bug
Status: newclosed

in the first computation the result cannot be store in an int so hex cannot convert it. hex() works only on 32-bit int not int64

in the second 164 is a double so multiplication give a result as a double which is converted back with precision rounding if possible. in this case as it is not possible max negative is the conversion result.

No Bug

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.