Skip to content

Instantly share code, notes, and snippets.

View TheeVigilance's full-sized avatar

TheeVigilance

View GitHub Profile
BigNumber = function(n, p, r){
var o = this, i;
if(n instanceof BigNumber){
for(i in {precision: 0, roundType: 0, _s: 0, _f: 0}) o[i] = n[i];
o._d = n._d.slice();
return;
}
o.precision = isNaN(p = Math.abs(p)) ? BigNumber.defaultPrecision : p;
o.roundType = isNaN(r = Math.abs(r)) ? BigNumber.defaultRoundType : r;
o._s = (n += "").charAt(0) == "-";

Keybase proof

I hereby claim:

  • I am TheeVigilance on github.
  • I am vigilance (https://keybase.io/vigilance) on keybase.
  • I have a public key whose fingerprint is 1606 2152 147A B7C8 A113 13F3 8B7F D836 526F 2315

To claim this, I am signing this object: