Clone and edit this document
Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
Big.js
node v0.12.18
version:
1.0.0
endpoint
share
tweet
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