Logo

Programming-Idioms

History of Idiom 146 > diff from v30 to v31

Edit summary for version 31 by motform:
New Clojure implementation by user [motform]

Version 30

2020-03-06, 23:34:03

Version 31

2020-03-06, 23:34:51

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
(read-string s)
Comments bubble
Uses the Clojure reader to parse a string into a float and is thus platform agnostic.