[Haskell-beginners] Rounding to 2 decimal places
Raghav Malik
malikraghav at gmail.com
Tue Mar 27 16:11:51 UTC 2018
Hi,
I have a complex double (x :+ y) where 'x' and 'y' are computed using sin
and cos functions on an angle expressed in radians.
However, the output on the command line (using GHCi) shows up with a lot of
decimal places. How can I limit the values of 'x' and 'y' to having only
two decimal places?
Thanks,
Raghav
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/beginners/attachments/20180327/bf4b1bd1/attachment.html>
More information about the Beginners
mailing list