GithubHelp home page GithubHelp logo

grim-firefly / g-bigint Goto Github PK

View Code? Open in Web Editor NEW
15.0 1.0 2.0 9 KB

BigInt in C++

C++ 100.00%
biginteger-cpp biginteger bigdata large-numbers bigint bigintegers big-data large-integers big-integer-arithmetic big-integer-in-c

g-bigint's Introduction

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 function

 

Declaration :

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 division
 usage 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_BigInt 

increment 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%=y 
 usage is as like as we do in integer but here both should be G_BigInt 

sign 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 

g-bigint's People

Contributors

grim-firefly avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

farid-islam vozeo

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.