decimal_for_cpp icon indicating copy to clipboard operation
decimal_for_cpp copied to clipboard

Decimal data type for C++

Results 5 decimal_for_cpp issues
Sort by recently updated
recently updated
newest added

… when otherwise a divide-by-zero would happen. Hey I tried to follow the format and practices to the best of my knowledge. Please let me know if not. Thanks!

Hey congrats for this work! I am using decimal_for_cpp for checking the results of some other algorithm (fpga) when I came across to a few test cases that are failing...

Fixes #40 I wanted to get this code working: ```cpp using Quantity = dec::decimal; [[nodiscard]] constexpr Quantity operator"" _qty(unsigned long long value) noexcept { return Quantity{int(value)}; } [[nodiscard]] constexpr Quantity...

I would suggest making constructors and init methods constexpr. Also it would be convenient to have user defined literal (for example 0.0_dec)

enhancement

I would like the option of making the class fully trivial. This would be a breaking change, as an uninitialized object would have a random value (just like int). The...

enhancement