Number with superpowers! 💪
This data structure inherit all methods and properties from the
Number
built-in.
$ yarn add @clarketm/supernumber
$ npm install @clarketm/supernumber --save
Construct a Number
Convert a roman numeral to number
Name | Type | Attribute | Description |
---|---|---|---|
str | string | Roman numeral |
Convert a number to roman numeral
Test if a string is a valid number
Name | Type | Attribute | Description |
---|---|---|---|
str | string | – string representation of a number |