On 10/30/07, Tim Chevalier <[EMAIL PROTECTED]> wrote:
> ppos = pi/len2; pi and len2 are both Ints, so dividing them gives you
> an Int. To convert to a Double, write ppos = fromIntegral (pi/len2).
> (Type :t fromIntegral in ghci to see what else fromIntegral can be
> used for.)

You mean pi / fromIntegral len2, right?

-- 
Felipe.
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to