summaryrefslogtreecommitdiff
path: root/node_modules/locutus/php/bc/bccomp.js.map
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/locutus/php/bc/bccomp.js.map')
-rw-r--r--node_modules/locutus/php/bc/bccomp.js.map1
1 files changed, 1 insertions, 0 deletions
diff --git a/node_modules/locutus/php/bc/bccomp.js.map b/node_modules/locutus/php/bc/bccomp.js.map
new file mode 100644
index 0000000..985c106
--- /dev/null
+++ b/node_modules/locutus/php/bc/bccomp.js.map
@@ -0,0 +1 @@
+{"version":3,"sources":["../../../src/php/bc/bccomp.js"],"names":["module","exports","bccomp","leftOperand","rightOperand","scale","bc","require","libbcmath","first","second","bc_init_num","bc_str2num","toString","bc_compare"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,MAAT,CAAiBC,WAAjB,EAA8BC,YAA9B,EAA4CC,KAA5C,EAAmD;AAClE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAIC,KAAKC,QAAQ,iBAAR,CAAT;AACA,MAAIC,YAAYF,IAAhB;;AAEA;AACA,MAAIG,KAAJ,EAAWC,MAAX;AACA,MAAI,OAAOL,KAAP,KAAiB,WAArB,EAAkC;AAChCA,YAAQG,UAAUH,KAAlB;AACD;AACDA,UAAUA,QAAQ,CAAT,GAAc,CAAd,GAAkBA,KAA3B;;AAEAI,UAAQD,UAAUG,WAAV,EAAR;AACAD,WAASF,UAAUG,WAAV,EAAT;;AAEA;AACAF,UAAQD,UAAUI,UAAV,CAAqBT,YAAYU,QAAZ,EAArB,EAA6CR,KAA7C,CAAR;AACA;AACAK,WAASF,UAAUI,UAAV,CAAqBR,aAAaS,QAAb,EAArB,EAA8CR,KAA9C,CAAT;AACA,SAAOG,UAAUM,UAAV,CAAqBL,KAArB,EAA4BC,MAA5B,EAAoCL,KAApC,CAAP;AACD,CA9BD","file":"bccomp.js","sourcesContent":["module.exports = function bccomp (leftOperand, rightOperand, scale) {\n // discuss at: http://locutus.io/php/bccomp/\n // original by: lmeyrick (https://sourceforge.net/projects/bcmath-js/)\n // example 1: bccomp('-1', '5', 4)\n // returns 1: -1\n // example 2: bccomp('1928372132132819737213', '8728932001983192837219398127471')\n // returns 2: -1\n // example 3: bccomp('1.00000000000000000001', '1', 2)\n // returns 3: 0\n // example 4: bccomp('97321', '2321')\n // returns 4: 1\n\n var bc = require('../_helpers/_bc')\n var libbcmath = bc()\n\n // bc_num\n var first, second\n if (typeof scale === 'undefined') {\n scale = libbcmath.scale\n }\n scale = ((scale < 0) ? 0 : scale)\n\n first = libbcmath.bc_init_num()\n second = libbcmath.bc_init_num()\n\n // note bc_ not php_str2num\n first = libbcmath.bc_str2num(leftOperand.toString(), scale)\n // note bc_ not php_str2num\n second = libbcmath.bc_str2num(rightOperand.toString(), scale)\n return libbcmath.bc_compare(first, second, scale)\n}\n"]} \ No newline at end of file