XInt is a big number class that is designed to be a "drop-in" replacement for both integers and all floating point types. In theory, you could take an existing programme, replace all integer and floating point types with XInt and it should compile and run exactly as it did before but with greater precision.

There are some exceptions. Obviously, if you are relying on over/underflow behaviour, it won't work, XInt does not overflow! It will underflow but in a controlled fashion and you can specify how it behaves.

XInt stands for eXtended Integer. In fact, they are extended in two directions - l and r. The l extension is the fact that they do not have a size limit (except for available memory) and the r extension is that they have decimal places (also unlimited).

A large part of math.h has been overloaded for XInt and the rest will follow. The functions that have not been overloaded (sin etc.) can still be accessed as there are conversion operators to and from long double.

Project Activity

See All Activity >

Categories

Libraries

Follow XInt

XInt Web Site

Other Useful Business Software
Build on Google Cloud with $300 in Free Credit Icon
Build on Google Cloud with $300 in Free Credit

New to Google Cloud? Get $300 in free credit to explore Compute Engine, BigQuery, Cloud Run, Vertex AI, and 150+ other products.

Start your next project with $300 in free Google Cloud credit. Spin up VMs, run containers, query exabytes in BigQuery, or build AI apps with Vertex AI and Gemini. Once your credits are used, keep building with 20+ products with free monthly usage, including Compute Engine, Cloud Storage, GKE, and Cloud Run functions. Sign up to start building right away.
Start Free Trial
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of XInt!

Additional Project Details

Intended Audience

Developers

Programming Language

C++

Related Categories

C++ Libraries

Registered

2017-03-10