diff options
| author | Adam Soltys <[email protected]> | 2020-05-16 22:09:10 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2020-05-16 22:09:10 -0700 |
| commit | f35282246da3a77d2d7e6dc193e12997832d1423 (patch) | |
| tree | 23f64098c3f2cef7aa6cf68ab6754572117749e9 /lib/fixed.js | |
| parent | 957b15980849e857995048dc13de8d8c6914f16d (diff) | |
| download | coinos-server-f35282246da3a77d2d7e6dc193e12997832d1423.tar.gz coinos-server-f35282246da3a77d2d7e6dc193e12997832d1423.zip | |
Revert "drop recaptcha"
This reverts commit 8a5496b3cd2e898e204367b8ca7c6e8f4d7b6055.
Diffstat (limited to 'lib/fixed.js')
| -rw-r--r-- | lib/fixed.js | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/lib/fixed.js b/lib/fixed.js deleted file mode 100644 index bd0710b9..00000000 --- a/lib/fixed.js +++ /dev/null @@ -1,22 +0,0 @@ -module.exports = function(n, p) { - if (!parseInt(p)) return parseInt(n).toFixed(0); - else { - let x = n / 10 ** p; - if (Math.abs(x) < 1.0) { - var e = parseInt(x.toString().split('e-')[1]); - if (e) { - x *= Math.pow(10, e - 1); - x = x.toFixed(9 - e); - x = '0.' + new Array(e).join('0') + x.toString().substring(2); - } - } else { - var e = parseInt(x.toString().split('+')[1]); - if (e > 20) { - e -= 20; - x /= Math.pow(10, e); - x += new Array(e + 1).join('0'); - } - } - return x; - } -} |
