var namedNumber = require("named-number");
var number = namedNumber(20000000);
console.log(number.getName()); // "20 million"
console.log(number.getFormatted()); // "20,000,000"
console.log(number.getSignificand()); // 2
console.log(number.getExponent()); // 7
console.log(number + 1); // 20000001
console.log("Result: " + number); // "Result: 20,000,000"
This repository has been archived by the owner on Jul 12, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
howsecureismypassword/modules-named-number
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|