summaryrefslogtreecommitdiff
path: root/node_modules/locutus/php/bc/bcscale.js.map
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/locutus/php/bc/bcscale.js.map')
-rw-r--r--node_modules/locutus/php/bc/bcscale.js.map1
1 files changed, 1 insertions, 0 deletions
diff --git a/node_modules/locutus/php/bc/bcscale.js.map b/node_modules/locutus/php/bc/bcscale.js.map
new file mode 100644
index 0000000..7b2e80d
--- /dev/null
+++ b/node_modules/locutus/php/bc/bcscale.js.map
@@ -0,0 +1 @@
+{"version":3,"sources":["../../../src/php/bc/bcscale.js"],"names":["module","exports","bcscale","scale","_bc","require","libbcmath","parseInt","isNaN"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,OAAT,CAAkBC,KAAlB,EAAyB;AACxC;AACA;AACA;AACA;;AAEA,MAAIC,MAAMC,QAAQ,iBAAR,CAAV;AACA,MAAIC,YAAYF,KAAhB;;AAEAD,UAAQI,SAASJ,KAAT,EAAgB,EAAhB,CAAR;AACA,MAAIK,MAAML,KAAN,CAAJ,EAAkB;AAChB,WAAO,KAAP;AACD;AACD,MAAIA,QAAQ,CAAZ,EAAe;AACb,WAAO,KAAP;AACD;AACDG,YAAUH,KAAV,GAAkBA,KAAlB;;AAEA,SAAO,IAAP;AACD,CAnBD","file":"bcscale.js","sourcesContent":["module.exports = function bcscale (scale) {\n // discuss at: http://locutus.io/php/bcscale/\n // original by: lmeyrick (https://sourceforge.net/projects/bcmath-js/)\n // example 1: bcscale(1)\n // returns 1: true\n\n var _bc = require('../_helpers/_bc')\n var libbcmath = _bc()\n\n scale = parseInt(scale, 10)\n if (isNaN(scale)) {\n return false\n }\n if (scale < 0) {\n return false\n }\n libbcmath.scale = scale\n\n return true\n}\n"]} \ No newline at end of file