Merge pull request #122 from adrianhara/master

Added custom util.inspect() function
pull/127/head
Michael M 5 years ago committed by GitHub
commit 50dc74c3cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -4367,6 +4367,7 @@
Decimal.tanh = tanh; // ES6
Decimal.trunc = trunc; // ES6
if (obj === void 0) obj = {};
if (obj) {
if (obj.defaults !== true) {
@ -4809,6 +4810,9 @@
// Node and other environments that support module.exports.
} else if (typeof module != 'undefined' && module.exports) {
Decimal.prototype[Symbol.for('nodejs.util.inspect.custom')] = function() {
return this.toString();
};
module.exports = Decimal;
// Browser.

3
decimal.min.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save