On Tue, Feb 5, 2013 at 6:04 PM, yi lu <zhiwudazhanjiangshi@gmail.com> wrote:
Thanks!
I'll try CReal.
But can I set significant figures myself?

You can't change ghci's output format, but you can do your own output instead of relying on ghci's.  http://hackage.haskell.org/packages/archive/base/latest/doc/html/Text-Printf.html might be of interest, or doing it manually with scaling and Prelude.round.

--
brandon s allbery kf8nh                               sine nomine associates
allbery.b@gmail.com                                  ballbery@sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net