2 ms·
> so programs will often operate in fixed-point decimal with a 16-bit integer part and a 16-bit fractional part Is this a mistake, or was there really some BCD
by Y_Y 2y ago
> so programs will often operate in fixed-point decimal with a 16-bit integer part and a 16-bit fractional part
Is this a mistake, or was there really some BCD-type magic going on?
- monocasa 2y agoIt's not BCD style magic, but just a choice of units. Say instead of in meters, if the unit is 1/65536 of a meter, than you can describe those integers as 16.16 fixed point meters.
- NobodyNada 2y agoYou're right, it's fixed-point binary with no base 10 involved. I think by "decimal" the author was just referring to the decimal point/the fact that there is a fractional part.