GithubHelp home page GithubHelp logo

limeoats / bignumber Goto Github PK

View Code? Open in Web Editor NEW
181.0 15.0 43.0 739 KB

C++ class for creating and computing arbitrary-length integers

License: Apache License 2.0

CMake 2.62% C++ 97.38%
bignumber biginteger bigint bignum

bignumber's Issues

Maybe a bug when calculate bignumer divide

You could try this:

    BigNumber big256(hex2dec.Convert("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"));
    BigNumber target = big256 / BigNumber("1");

it seems trap into an endless loop.

A question

If I want to construct the class with a big integer without ""(quotation marks),like
BigNumber a = 1234567898765432123456789;
something like this. What should I do?

Change OS specific instructions in CMAKE -Install

CMake needs specific instructions for OS's. I can't get this library working on linux. It needs to be easier to install.

Change to This:
else(APPLE)
install(TARGETS BigNumber DESTINATION ~/Library/Frameworks/BigNumber/lib)
install(FILES src/bignumber.h DESTINATION ~/Library/Frameworks/BigNumber/include)

https://stackoverflow.com/questions/9160335/os-specific-instructions-in-cmake-how-to

Detect Apple MacOS and Detect Unix and Linux:

if(APPLE)

OR:

if(UNIX AND NOT APPLE)

Floats?

Hey there!

can I calculate floating point numbers??

gcc -> not comile & limited

I cant use it on Linux / Ubuntu.
Also view thats limited bignumber on long long.
I must to have extra type on number with over 100 digit in number.

CMake Deprecation Warning at CMakeLists.tx

Compatibility with CMake < 3.5 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

deprication warning

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.