
27 Mar
2018
27 Mar
'18
12:11 p.m.
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