Re: Haskell 98 draft report

1998-12-22 Thread Matthew Donadio
Hans Aberg wrote: Thinking of it, "round" should probably be viewed as a method to convert a float to another float of less precision (and not a conversion to an integer) To be picky, rounding a fixed point value to less bits is a very common procedure (at least it is in the DSP world) to

RE: Haskell 98 draft report

1998-12-21 Thread Simon Peyton-Jones
p. 83 'Coercions and Component Extraction' I find it quite odd that round 3.5 returns 4, but round 2.5 returns 2. I always thought that round x.5 returns x+1 (instead of the even integer). That's the behaviour in most math books and programming languages It looks odd to me too. I think

Re: Haskell 98 draft report

1998-12-21 Thread Keith Wansbrough
p. 83 'Coercions and Component Extraction' I find it quite odd that round 3.5 returns 4, but round 2.5 returns 2. I always thought that round x.5 returns x+1 (instead of the even integer). That's the behaviour in most math books and programming languages It looks odd to me too. I