cnl
fpm
cnl | fpm | |
---|---|---|
4 | 3 | |
621 | 597 | |
- | - | |
2.2 | 2.1 | |
9 days ago | 4 months ago | |
C++ | C++ | |
Boost Software License 1.0 | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
cnl
-
Could fixed-point be introduce into C++26? If so would it be through language, library or both?
There was https://github.com/johnmcfarlane/fixed_point as a proposal. And now this repo recommends to go for https://github.com/johnmcfarlane/cnl for better version.
-
cnl library and scaled_integer
I am looking at the following library and I can't understand how to properly use it, or if my assumptions are not correct. https://github.com/johnmcfarlane/cnl
- fixedmath c++17 library
-
Float division
For instance: Compositional Numeric Library
fpm
-
Try This Brand New Analog Computer
> more like a floating point ... or more like a fixed-point ... ?
It really depends on what kind of analog hardware you use. Not exactly like either. You would different causes for error: Thermal, inherent indeterminism of interactions, decay/drift of value over time, boundary breaches with values near extrema, etc.
> IMO it is surprising fixed-point values don’t come up more often
The C++ standard committee has seen a paper on adding those to the language, as a library feature: https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p00...
There's a kind-of-popular fixed-point-math library for the language:
https://github.com/MikeLankamp/fpm
and I'm sure they have received some attention in other languages.
-
Rust be like
[1]: https://github.com/MikeLankamp/fpm/blob/master/docs/performance.md
-
Convert integer to floating point string without doing any floating point operations
It is a header only library, all you need to do is include the 3 hpp files in https://github.com/MikeLankamp/fpm/tree/master/include/fpm
What are some alternatives?
wide-integer - Wide-Integer implements a generic C++ template for uint128_t, uint256_t, uint512_t, uint1024_t, etc.
Feral - Feral programming language reference implementation
heyoka - C++ library for ODE integration via Taylor's method and LLVM
Thrust - [ARCHIVED] The C++ parallel algorithms library. See https://github.com/NVIDIA/cccl
fixed_math - FixedMath: A High-Performance C++17 Library for Fixed-Point 48.16 Arithmetic
libcudacxx - [ARCHIVED] The C++ Standard Library for your entire system. See https://github.com/NVIDIA/cccl
crunchy-bytes - C++ 17 Schema Serialization Library
monero-lws - Monero Light Wallet Server (scans monero viewkeys and implements mymonero API)
xray-16 - Improved version of the X-Ray Engine, the game engine used in the world-famous S.T.A.L.K.E.R. game series by GSC Game World. Join OpenXRay! ;)
grand-unified-divisibility-rule - One divisibility rule for all numbers
OpenRCT2 - An open source re-implementation of RollerCoaster Tycoon 2 🎢
fixed_point - C++ Binary Fixed-Point Arithmetic