3 ms·
Floating point boolean: It can convey True, False and all the grey in between.
by __david__ 6y ago
Floating point boolean: It can convey True, False and all the grey in between.
- klyrs 6y agoThis is about as good as it gets for the concept, but lacks as a name. I propose boof. But actually there's two "natural" hardware implementations for this. First is like floating point with no sign bits (mantissa is positive or zero, exponent is negative). The other is fixed point, basically re-interpreting unsigned ints as being implicitly divided by 0xfff...f -- both have advantages and drawbacks. And then comes the operations. Multiplication is the only closed operation -- addition, subtraction and division need special cases: should they be clamped, or wrap around? Both, probably -- wrapping is useful for trig functions, for example.