Contain various methods to deal with number
static number parse(value: number | string, default: number = null)
Try to parse the input into a number. If the input is already a number then it's returned. Default is returned if the input cannot be parsed
Parameters | |
value | The value to be parsed |
default | The default value if parse failed |
Return | |
number | Parsed number or default |
© 2024 - Macrorify by KoK-CODE