@clarketm/supernumber
v1.2.32
Published
Number with superpowers! 💪
Maintainers
Readme
Number
Number with superpowers! 💪
This data structure inherit all methods and properties from the
Numberbuilt-in.
Individual Module Installation
Yarn
$ yarn add @clarketm/supernumberNpm
$ npm install @clarketm/supernumber --saveAPI
constructor(number: number)
Construct a Number
fromRomanNumeral(str: string): number
Convert a roman numeral to number
| Name | Type | Attribute | Description | | ---- | ------ | --------- | ------------- | | str | string | | Roman numeral |
toRomanNumeral(): string
Convert a number to roman numeral
isNumber(str: string): boolean
Test if a string is a valid number
| Name | Type | Attribute | Description | | ---- | ------ | --------- | ----------------------------------- | | str | string | | – string representation of a number |
