3 ms·
How do you store negative numbers?
by knert 1y ago
How do you store negative numbers?
- psychoslave 1y agoMaybe as in accounting, one column for benefits, one for debts?
- MobiusHorizons 1y agoYou use a signed integer type, so you just store a negative number. You can think of fixed point as equivalent to ieee754 floats with a fixed exponent and a two’s complement mantissa instead of a sign bit.