Logo

Programming-Idioms

History of Idiom 146 > diff from v21 to v22

Edit summary for version 22 by programming-idioms.org:
[JS] Emphasis doesn't work on name "+", for now

Version 21

2019-01-24, 11:50:33

Version 22

2019-07-15, 14:33:17

Idiom #146 Convert string to floating point number

Extract floating point value f from its string representation s

Idiom #146 Convert string to floating point number

Extract floating point value f from its string representation s

Extra Keywords
real conversion
Extra Keywords
real conversion
Code
let f = +s
Code
let f = +s
Comments bubble
The unary _+ operator converts its argument to a double precision floating point.
Comments bubble
The unary + operator converts its argument to a double precision floating point.