Funny library for arbitrary-precision arithmetic
- Cmake version 3.27 is required. To check:
cmake --version
- Make dir for cloning
- Clone the repo:
git clone https://github.com/neykandre/Large-Numbers.git
- Make dir for build files:
mkdir build_files
- Build the project:
cd ./build_files cmake ../Large-Numbers cmake --build .
It's possible to build the following targets separately (with --target argument):
- MyTests - tests
- computePi - computing Pi programm
- LargeNumbersLib - library separately
-
/computePi/computePi *precision(default=100)*
- compute PI constant with given precision
-
/test/MyTests
- run tests
Number of decimal places:
- 100 - 0.65 ms
- 1000 - 59 ms
- 2000 - 240 ms
- 4998 - 1350 ms