30 Oct
2007
30 Oct
'07
6:50 p.m.
Le 30/10/07, Dupont Corentin
There must be a way to divide a real by an integer?? My integer is eventually a "number of elements" as in the exemple of Dan. How would you compute a mean then?
No, you can't "divide a real by an integer", but you can introduce the integer in the reals and divide by this. divideByI :: (Fractional a, Integral b) => a -> b -> a divideByI a b = a / fromIntegral b -- Jedaï