File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -31,9 +31,16 @@ The following global constants and functions are present alongside the standard
3131 Tests if a 32 - bit or 64 - bit float is finite , that is not ` NaN ` or +/- ` Infinity ` .
3232
3333* ` ` ` ts
34- function parseInt(str: string, radix?: i32): i64
35- ` ` `
36- Parses a string to a 64 - bit integer . Returns ` 0 ` on invalid inputs .
34+ function parseInt(str: string, radix?: i32): f64
35+ ` ` `
36+ Parses a string representing an integer to an f64 number Returns ` NaN ` on invalid inputs .
37+
38+ Type - specific variants of ` parseInt ` are available separately :
39+ * ` F32.parseInt ` to parse to a 32 - bit float .
40+ * ` I8.parseInt ` to parse to a signed 8 - bit integer , respectively ` U8.parseInt ` if unsigned .
41+ * ` I16.parseInt ` to parse to a signed 16 - bit integer , respectively ` U16.parseInt ` if unsigned .
42+ * ` I32.parseInt ` to parse to a signed 32 - bit integer , respectively ` U32.parseInt ` if unsigned .
43+ * ` I64.parseInt ` to parse to a signed 64 - bit integer , respectively ` U64.parseInt ` if unsigned .
3744
3845* ` ` ` ts
3946 function parseFloat(str: string): f64
You can’t perform that action at this time.
0 commit comments