Logo

Programming-Idioms

History of Idiom 146 > diff from v12 to v13

Edit summary for version 13 by Alekzcb:
New Haskell implementation by user [Alekzcb]

Version 12

2017-07-26, 00:37:09

Version 13

2017-09-21, 17:09:36

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 s :: Double
Comments bubble
s is the String you wan to convert, optionally you can change "Double" to "Float".
Doc URL
http://hackage.haskell.org/package/base-4.10.0.0/docs/Prelude.html#v:read