[Haskell-beginners] easy question: transform Float -> Int how?
John M. Dlugosz
ngnr63q02 at sneakemail.com
Fri Apr 25 16:29:46 UTC 2014
On 4/25/2014 10:03 AM, Arjun Comar wrote:
> Hi John,
> This page <http://www.haskell.org/haskellwiki/Converting_numbers> should have you covered.
> Check section 3 especially.
Very nice—thanks for the link.
David: I must have overlooked round,truncate,ceiling. I think I didn't realize that they
don't return the same type that they take as argument. Anyway, "round" worked. Thanks!
More information about the Beginners