Random-Cpp/NegBin/README.md

6 lines
334 B
Markdown
Raw Normal View History

2020-11-06 22:34:02 +01:00
# NegBin
Implements a class handling numbers in base -2.
Currently only the `+` operation is specific, all other operations (`-`, `~`, `*` with a scalar) are based on this one.
The implementation is quite naive and a bit slow but it works (~30x slower than integer addition on my machine). It can also convert to and from decimal !