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
Auth0 for AI Agents now in GA Icon
Auth0 for AI Agents now in GA

Ready to implement AI with confidence (without sacrificing security)?

Connect your AI agents to apps and data more securely, give users control over the actions AI agents can perform and the data they can access, and enable human confirmation for critical agent actions.
Start building today
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