-
Notifications
You must be signed in to change notification settings - Fork 24
Parse Library
Rohan Singh edited this page Jun 7, 2024
·
1 revision
parseFloat(str: string): number | undefined
Parses the given string as a floating point number. Returns undefined
if the string is not a valid floating point number.
parseInt(str: string): number | undefined
Parses the given string as an integer. Returns undefined
if the string is not a valid integer.
parseHex(str: string): number | undefined
Parses the given string as a hexadecimal integer. Returns undefined
if the string is not a valid hexadecimal integer.