Coder Social home page Coder Social logo

bigintegerclass's Introduction

BigIntegerClass

BigInteger Class for C++ to deal with very large integers (even larger than the long long limits i.e. (10^19)).

How to use?

Just copy "BigInteger.hpp" and "BigInteger.cpp" to your project files. Do NOT forget to include the class header file in your project, i.e. #include "BigInteger.hpp".

Functionality

  • Adding and Multiplying.
  • Several operators like: > , < , <= , >= , == , != .

Notes

Please note that this class still doesn't have a lot of functionality yet. It's just for learning purpose.

Credits

Created by me (Hassan El Desouky).

License

Freely provided under the MIT License.

bigintegerclass's People

Contributors

hassaneldesouky avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

bigintegerclass's Issues

Multiplying doesn't work with very large numbers.

When multiplying numbers like:
s1 = 100000000000000000000000012
s2 = 10000000000000000000000018
the output is = 1920000000000000000000000216
However it should be = 1000000000000000000000001920000000000000000000000216

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.