Name: Anonymous 2007-05-17 11:03 ID:ewt37wAw
Prelude> round 0.5
0
Prelude> round 1.5
2
Prelude> round 2.5
2
Prelude> round 3.5
4WHAT THE FUCK
Prelude> round 0.5
0
Prelude> round 1.5
2
Prelude> round 2.5
2
Prelude> round 3.5
4Prelude> map properFraction [0.5..9.5]
[(0,0.5),(1,0.5),(2,0.5),(3,0.5),(4,0.5),(5,0.5),(6,0.5),(7,0.5),(8,0.5),(9,0.5)]round x = if (snd $ properFraction x) >= 0.5 then ceiling x else floor xPrelude> map round [0.5..9.5]
[1,2,3,4,5,6,7,8,9,10]