RE: round and computer science

2001-04-13 Thread Shankar Unni
Dennis Nichols <[EMAIL PROTECTED]> writes: > At 4/13/01 03:42 AM, Peter Holm wrote: > >mysql> select floor(23.49 + 0.5); => 23 > >mysql> select floor(23.499 + 0.5); => 24 > >Why are there different results? > > Apparently the closest (most accurate) expression of the

Re: round and computer science

2001-04-12 Thread Dennis Nichols
At 4/13/01 03:42 AM, Peter Holm wrote: >mysql> select floor(23.49 + 0.5); >++ >| floor(23.49 + 0.5) | >++ >| 23 | >++ > >mysql> select floor(23.49

round and computer science

2001-04-12 Thread Peter Holm
OK, I understand this is something very basic, I should understand. Maybe anybody can teach me the difference between: mysql> select floor(23.49 + 0.5); ++ | floor(23.49 + 0.5) | ++ |