Open saxbophone opened 2 years ago
On the other hand, it might be more in-keeping with number theory to rename arby::Uint
to arby::Natural
and call the signed type arby::Integer
Make sure that it can be correctly constructed from both uintmax_t
and intmax_t
: https://codereview.stackexchange.com/questions/283562/api-design-for-implementing-nan-unknown-values-for-custom-numeric-type
For those who insist that they need negative numbers.
Probably will implement as sign-magnitude with the magnitude reusing
arby::Uint
.The type will probably be called
arby::Sint
.