aadityanaik / longnums Goto Github PK
View Code? Open in Web Editor NEWA custom made proof-of-concept class for handling numbers with large number of digits
A custom made proof-of-concept class for handling numbers with large number of digits
There's a few other points I thought of bringing up when I was doing the minor refactoring in my last PR. I haven't really had time to suggest these via a PR, so I'll just write the list of comments here:
LongNumber
or BigNumber
or BigInteger
instead of Longnums
.Longnums(const long int x)
and you get all these operations for free.return expr
instead of this if (expr) return true; else return false;
.==
and <
, for example), and define the rest in terms of these two. Also, instead of implementing addition and subtraction you could define subtraction as a - b = a + (-b)
.base
property to the Longnums class, since this is expected to be always the same for all instances of the class. Not sure if I'm missing something here, tho.Best of luck. Cheers.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.