Skip to content
⌘ NSIS Forum Archive

IntOp 5000 + 025 = 5021!

3 posts

sab0tage#

IntOp 5000 + 025 = 5021!

IntOp doesn't seem to be able to add up correctly if one of the values has a leading zero.

I could remove the leading zero, but I would have thought it should ignore them, instead the calculation result is wrong.

This is with NSIS 2.29 on my work PC. I'll try at home and see if I get a different result.

Regards,
sab0tage
demiller9#
Leading zeros indicate octal encoding. 025 = 2*8+5 = 21. It's in the manual (Section 4.1, numbers).

Don