[Haskell-cafe] coercion to Int
Stefan Holdermans
sholderm at students.cs.uu.nl
Fri Dec 31 13:29:20 EST 2004
James,
Untested:
fnK_ :: Int -> Int
fnK_ n = round (sqrt $ fromInteger x :: Double)
HTH,
Stefan
More information about the Haskell-Cafe
mailing list