[Haskell-beginners] How to convert a float or double number into a string?

Oscar Benjamin oscar.j.benjamin at gmail.com
Wed Sep 18 16:23:48 CEST 2013


On Sep 18, 2013 2:15 PM, "yi lu" <zhiwudazhanjiangshi at gmail.com> wrote:
>
> In fact, I am not looking for some way to convert a float 0.75 to 3%4.
Your reply is helpful!
> What I need is just as much number of digits as possible. If I can hold
as many digits of pi, i.e. 3.1415926535... as possible and save it in a
String, it will be perfect!

I think something is still missing from your description.

If you want to store the digits of pi in a string then why not use a string?

Oscar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20130918/269d5fbb/attachment.htm>


More information about the Beginners mailing list