Modify ↓
Opened 16 years ago
Closed 16 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 Changed 16 years ago by Jpm
- Resolution set to No Bug
- Status changed from new to closed
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.
Note: See
TracTickets for help on using
tickets.
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