https://github.com/ilia-funtov/fixed-point-number
A toy project to demonstrate how fixed point arithmetic for decimals can be written using C++ 17
https://github.com/ilia-funtov/fixed-point-number
cpp
Last synced: 8 months ago
JSON representation
A toy project to demonstrate how fixed point arithmetic for decimals can be written using C++ 17
- Host: GitHub
- URL: https://github.com/ilia-funtov/fixed-point-number
- Owner: ilia-funtov
- License: bsl-1.0
- Created: 2022-05-25T18:06:10.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-06-06T06:22:55.000Z (about 4 years ago)
- Last Synced: 2025-02-16T03:20:06.840Z (over 1 year ago)
- Topics: cpp
- Language: C++
- Homepage:
- Size: 134 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fixed-point-number
A toy project to demonstrate how fixed point arithmetic for decimals can be written using modern C++.
It is a header only library written in C++ 17. The project has unit tests.
How to build and run in Linux (Ubuntu)
Install prerequisites:
sudo apt install build-essential cmake
Build and run tests
In project's directory:
mkdir build
cd build
cmake ..
make
make test