File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,9 +25,22 @@ First best solution: Use a library with correct implementation of floating point
2525 - BUT: only compatible with TS allowSyntheticDefaultImports: true + default import
2626
2727Second best solution: Use a custom implementation of roundToPrecision
28- @bjesuiter selected (on 2024-09-09):
28+ @bjesuiter original selected implementation (on 2024-09-09):
2929https://stackoverflow.com/questions/11832914/how-to-round-to-at-most-2-decimal-places-if-necessary#:~:text=Solution%202%3A%20purely%20mathematical%20(Number.EPSILON)
3030
31+ 2025-07-11: refined multiple times
32+
33+ ---
34+ # Changelog
35+
36+ ## 2.0.0 - 2025-07-11
37+
38+ - reworked the whole implementation and added more tests and examples
39+
40+ ## 1.0.0
41+
42+ Initial release
43+
3144---
3245
3346# For Contributors
You can’t perform that action at this time.
0 commit comments