Originally Posted by
alainthailande
Been a systems engineer for almost 30 years now, and I've never heard of a signed 16-bit implementation different from the traditional -32768 to 32767 that has exactly one representation for zero (what you call "minus zero" actually being -32768). Any reference to this particular implementation you're mentioning?
Old engineer as well.
Ones complement and sign-magnitude both do this.
Not sure how much either is still in use though - not a lot, most things are twos complement, but maybe in some niches.
I have a
very vague (and probably wrong) recollection that fixed-point datatypes in Coral66 and maybe ADA (not used that much) might have used ones-complement magnitude under the hood. On some hardware. Coral was definitely used in aviation (maybe still is, I haven't worked with it since the 80s) as is ADA.