3 ms·
". a negative number, like an array or memory address offset? " A negative number yes, but not really a memory offset (you shouldn't mix negative numbers and m
by raverbashing 14y ago
". a negative number, like an array or memory address offset? "
A negative number yes, but not really a memory offset (you shouldn't mix negative numbers and memory offset, really)
But yeah, if you're doing "math" go for it, but it's on rare occasions where you need negative numbers (subtraction yes)
The most common case I remember may be sound samples, where you have signed chars.
For all other cases you would be using floating point or decimal numbers
- Natsu 14y ago> For all other cases you would be using floating point or decimal numbers If I'm trying to avoid mathematical anomalies, floating point is not what I would run to... "Equal" is a matter of degree, you have to be careful with anything near zero and you can't carelessly mix together numbers that are a few orders of magnitude different than each other.
- raverbashing 14y agoAbsolutely But for most of "math" you would go for floating point. You won't reinvent some fixed point math using integers just because...