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
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
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