Logo

Programming-Idioms

History of Idiom 22 > diff from v72 to v73

Edit summary for version 73 by gumbo59:
New JS implementation by user [gumbo59]

Version 72

2019-09-26, 17:54:30

Version 73

2019-09-26, 21:29:08

Idiom #22 Convert string to integer

Extract integer value i from its string representation s (in radix 10)

Illustration

Idiom #22 Convert string to integer

Extract integer value i from its string representation s (in radix 10)

Illustration
Extra Keywords
int base conversion
Extra Keywords
int base conversion
Code
const i = Number(s);