Skip to content
⌘ NSIS Forum Archive

IntOp Problem...

3 posts

deguix#

IntOp Problem...

When I sum 100 with 015 using the IntOp command, the result is 113! Only putting a 0 before the number 15 to change the result (when I do not put the 0 before 15, the result is 115)!

Doing this with other operations:

IntOp $0 100 - 015 - Result is 87.
IntOp $0 100 / 015 - Result is 7.
IntOp $0 100 % 015 - Result is 9.
IntOp $0 100 * 015 - Result is 1300.
RDaneel#
Ummm, this might be because the leading "0" says to interpret this number using base 8 (octal)... use "0x" to express base 16 (hexadecimal) numbers. 😁