📜  haskell float to int - Haskell 代码示例

📅  最后修改于: 2022-03-11 14:53:35.104000             🧑  作者: Mango

代码示例2
-- Float to Int
toInt :: Float -> Int
toInt x = round x