4 ms·
I really want a standards body to standardize a positized version of floating point numbers. Everything about the encoding of posits (i.e. NaR, no -0.0, exponen
by adgjlsfhk1 1y ago
I really want a standards body to standardize a positized version of floating point numbers. Everything about the encoding of posits (i.e. NaR, no -0.0, exponent encoding) is so much nicer. The tapered precision part of posits is IMO the least interesting part.
- dnautics 1y agothe twos complement thing is really elegant (-p == (posit -(int p))) in c notation
- adgjlsfhk1 1y agorelatedly, having the same ordering as signed ints just makes everything so much easier. You can just use your integer radix sort to sort your floats without having to deal with sign and nans first!
- immibis 1y agoSo do floats if you don't care about NaN
- tomsmeding 1y agoThey do not; if you sort as unsigned ints then negative floats sort above positive ones, and if you sort as signed ints then the negative range is reversed. IEEE floats are sign-magnitude, not twos-complement.
- andrepd 1y agoAdd "simple and consistent rounding" to that list! There's a tentative standard btw: https://posithub.org/docs/posit_standard-2.pdf https://posithub.org/docs/posit_standard-2.pdf