parseInt()
Convert the calling string of radix to an Int.
Description
The parseInt()
method converts the calling string
for radix to a decimal Int.
-
Leading and trailing whitespace and comma separators result in an error.
-
Exponential notation isn’t allowed.
The calling string isn’t changed.
Examples
-
Convert a value using the default, base 10 radix:
2147483647
-
Convert a hexadecimal value using base 16 radix:
1.7976931348623157e+308
Is this article helpful?
Tell Fauna how the article can be improved:
Visit Fauna's forums
or email docs@fauna.com
Thank you for your feedback!