Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/grim-firefly/g-bigint
BigInt in C++
https://github.com/grim-firefly/g-bigint
big-data big-int big-int-addition big-int-c big-int-cpp big-int-division big-int-library big-int-multipication big-int-relational-operator big-int-substraction big-integer-arithmetic big-integer-in-c bigdata bigint biginteger biginteger-cpp bigintegers cpp-bigint-library large-integers large-numbers
Last synced: 8 days ago
JSON representation
BigInt in C++
- Host: GitHub
- URL: https://github.com/grim-firefly/g-bigint
- Owner: grim-firefly
- Created: 2019-11-21T17:07:10.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2019-11-28T05:53:25.000Z (almost 5 years ago)
- Last Synced: 2024-10-12T11:36:02.874Z (25 days ago)
- Topics: big-data, big-int, big-int-addition, big-int-c, big-int-cpp, big-int-division, big-int-library, big-int-multipication, big-int-relational-operator, big-int-substraction, big-integer-arithmetic, big-integer-in-c, bigdata, bigint, biginteger, biginteger-cpp, bigintegers, cpp-bigint-library, large-integers, large-numbers
- Language: C++
- Size: 8.79 KB
- Stars: 15
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
G_BigInt
Documentation :
Here we will describe how to use the G_BigInt in our code.
Open this code in your editor and do what you want to do in main functionDeclaration :
declare BigInt variable like other's variable . for example, G_BigInt x,y,z;
there is two way to initialize G_BigInt;
One is using constructor . for example: G_BigInt x("23243");
or using string . for example:
string str="3435453543";
G_BigInt x=str;
but we can't initialize like G_BigInt x="2324"; or G_BigInt x=23434235435345454 ;Input and Output:
Input can be taken using cin >>variable_name ;
and print the output using cout << variable_name;
Arithmetic Operators :
+ addition- subtraction* multiplication/ division% remainder after divisionusage is as like as we do in integer but here both should be G_BigInt
Relational Operator :
< , <= , > , >= , == , !=usage is as like as we do in integer but here both should be G_BigIntincrement and Decrement :
usage is as like as we do in integer. for example : x++; ++x; x--;--x;Assignment Operator :
we can do : x+=y; x-=y; x*=y; x/=y;x%=yusage is as like as we do in integer but here both should be G_BigIntsign change :
we change sign as we do in integer : x=-x; here x value will be -x.
we need to use - before the variable--Thank You
Grim Firefly