Archive: IntOp Problem...


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.


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. :D


Yep, 015 (octal) is actually 13 (decimal).