Does the BASIC Stamp handle signed numbers and arithmetic?
Yes. The BASIC Stamp uses twos-compliment notation for signed numbers. This means that the expression: 0 -10 + 5 will result in -5 if viewed as a signed number, however, most instructions see the number as a positive value, in this case 65531 (the twos-compliment value for -5). All mathematical operators, except division, will work properly with signed numbers in the BASIC Stamp and signed numbers can be formatted for output properly using the SDEC, SHEX and SBIN formatters within DEBUG and SEROUT statements on the BASIC Stamp II. Be careful how you use signed numbers elsewhere.