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
Enterprise-grade ITSM, for every business Icon
Enterprise-grade ITSM, for every business

Give your IT, operations, and business teams the ability to deliver exceptional services—without the complexity.

Freshservice is an intuitive, AI-powered platform that helps IT, operations, and business teams deliver exceptional service without the usual complexity. Automate repetitive tasks, resolve issues faster, and provide seamless support across the organization. From managing incidents and assets to driving smarter decisions, Freshservice makes it easy to stay efficient and scale with confidence.
Try it Free
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