No, just use &(number-1) instead of %number. E.g. &255 instead of %256, &65535 instread of %65536. It works.
Alternatively, if you have such liking to % operation, check the result afterwards and if it is less than 0, and the divisor (256, 65536 etc.) to the result.