
12 Feb
2006
12 Feb
'06
4 p.m.
Hi all, I am trying to implement a function that finds the significant figure of a number to a specified point i.e. 2.55555 3 = 2.556. I have implemented something like: sig :: (RealFrac a, Integral b) => a -> Int -> a sig x y = round y However this doesn't work. Moreover at the Prelude when i type round 2.3333 2 i get an error. Any suggestions? Thanks, Skag55 _________________________________________________________________ Dont just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/