Skip to content

AmmoniumX/BigNumPlusPlus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BigNum++

Lightweight, high-performance C++ port of https://github.com/Patashu/break_infinity.js

Relies heavily on constexpr optimizations.

BigNums are represented internally as m × 10^e, using double m and uintmax_t e.

Note: e is unsigned. This means that BigNums can only store numbers as small as regular doubles, but the upper limit is higher.

Maximum representable value is std::nextafter(10.0, 0.0) × 10^numeric_limits<uintmax_t>::max(), effectively 1e(2^64).

Build information

See the example Makefile for build requirements.

About

C++ base-10 BigNum library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published