Re:Signed Integers Are Two’s Complement
by jovial_cavalier on Wednesday May 30, 2018 @11:49PM
(#17193807)
Is there a good way to represent floating points in order to do complement arithmetic?
[ Parent
| on HN ]
Yes, see JavaScript: https://www.w3schools.com/js/js_numbers.asp
JS is IEEE754, not a (one's or two's) complement-based representation.
Ah I misunderstood the question.
Re:Signed Integers Are Two’s Complement
by hamiltonkibbe on Thursday May 31, 2018 @12:38AM
(#17193997)
If you know a bit about the range you need to support you could use a fixed point representation