lk86 / bashbignum Goto Github PK
View Code? Open in Web Editor NEWThis project forked from ess/bashbignum
Because somebody wanted to be a jerk, a pure Bash implementation of Bignum
License: GNU General Public License v3.0
This project forked from ess/bashbignum
Because somebody wanted to be a jerk, a pure Bash implementation of Bignum
License: GNU General Public License v3.0
Bash Bignum A Bignum solution implemented in pure Bash http://github.com/ess/bashbignum PURPOSE ======= Aside from giving me the ability to claim to be a Big Jerk (TM), I guess there are situations in which it would be somewhat awesome to be able to handle ridiculously large integers (and their calculations) in a pure Bash environment. Remember ... we can't always guarantee that bc will exist on a given system. If you can believe this, I actually have a project in mind for which this capability is an absolute requirement. FEATURES ======== * Integers so large that they can fill up the entirety of your memory, if you so choose. * Addition! * Subtraction! * Multiplication! * Division! * Modulo Division! * Negation! * Intuitive Comparisons! * While the arithmetic operations are about as well-optimized as I could figure, Bash Bignum caluculations are Awesomely Slow. BASICS ====== source /path/to/bignum.sh a="$( bn_create '100000000000000000000000000000000000')" b="$( bn_create '10000000000000000000000000000000000')" echo "$( bn_to_string "$( bn_add "${a}" "${b}" )" )" echo "Read through the source until I've had time to document this crap."
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.