Subject | Re: [firebird-support] Re: The integer part of a number |
---|---|
Author | Milan Babuskov |
Post date | 2006-11-24T16:24:17Z |
Alexandre Benson Smith wrote:
to handle 0.5 values. For some uses this is enough:
select cast(x + 0.5 as integer) from rdb$database;
--
Milan Babuskov
http://swoes.blogspot.com/
http://www.flamerobin.org
> But when I was replying I saw he wants just the integer part besidesThere are different kinds of rounding, most of them having different way
> rounding, then I will suggest an UDF.
to handle 0.5 values. For some uses this is enough:
select cast(x + 0.5 as integer) from rdb$database;
--
Milan Babuskov
http://swoes.blogspot.com/
http://www.flamerobin.org