Big.js

node v0.12.18
version: 1.0.0
endpointsharetweet
var Big = require("big.js"); Number(new Big(0.1).plus(0.2));
var thing = { valueOf: function() { return 7; } } Number(thing);
So basically, when the Number constructor is called, it's just calling the valueOf of the object.
Loading…

no comments

    sign in to comment