cnl
cnl copied to clipboard
A Compositional Numeric Library for C++
From [#447](https://github.com/johnmcfarlane/cnl/issues/447#issuecomment-504557617): https://godbolt.org/z/gre-SC
**What would you like to see in CNL?** Source files likely have many circular `#include`s which are not apparent because of header guards. Nevertheless, they are not nice. It's a...
**Describe the bug:** The test "static_number_saturation_min" fails. Saturation produces -32767. ```cpp namespace static_number_saturation_max { static constexpr auto n = cnl::static_number{1.0}; static constexpr auto n_rep = static_cast (to_rep(n)); static constexpr auto...
**What is your question?** Is there a way of converting between datatypes with different overflow tags. **What are you trying to do?** One may need to change the overflow type...
Does it make sense to implement a "good-enough" trigonometric library as part of CNL, or do we as a community already know of good existing fixed-point trig lib that plays...
Should not require that `rounding_integer` is included in order to use `set_rounding` and `rounding`.
Examples
Fix the [examples](https://johnmcfarlane.github.io/cnl/index.html#Examples). There is misinformation: "Named functions provide fine-tuned control over arithmetic results." The whole *message* is out of date.
Placeholder: eventually, it should be easy to implement a variant of scaled_integer with quais-exact division. This might replace `quotient`.