[Haskell-cafe] String to Double conversion in Haskell

Daryoush Mehrtash dmehrtash at gmail.com
Sun Aug 24 17:22:01 EDT 2008

I am trying to convert a string to a float.  It seems that Data.ByteString
library only supports readInt.    After some googling I came accross a
possibloe implementation: http://sequence.svcs.cs.pdx.edu/node/373

My questions are:

a) is there a standard library implementation of string -> Double and float?
b) Why is it that the ByteString only supports readInt? Is there a reason
for it?


Daryoush Mehrtash
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20080824/0e09a619/attachment.htm

More information about the Haskell-Cafe mailing list