Code: Select all
foo := 15
bar := 0xF
baz := 0xf
MsgBox, , Title, %foo% ; (A) shows 15
MsgBox, , Title, %bar% ; (B) shows 0xF
MsgBox, , Title, %baz% ; (C) shows 0xf
foo += 0x0
bar += 0x0
baz += 0x0
MsgBox, , Title, %foo% ; (D) shows 15
MsgBox, , Title, %bar% ; (E) shows 15
MsgBox, , Title, %baz% ; (F) shows 15
Also after the calculation, all numbers become decimal, as shown by (D) (E) (F). Are there ways to keep a number hex after calculation?