Subject | Re: [firebird-support] division operation doesn't returns decimals ref/eDN2041595759 |
---|---|
Author | Martijn Tonies |
Post date | 2006-03-01T11:19:24Z |
> division operation doesn't returns decimalsSearch the group.
>
>
>
> For instance:
>
>
>
> select (123/100) from inv
>
> returns
>
> 1
>
>
>
> Any comments are accepted
Search the web.
integer/integer returns integer
try:
select (123/100.0) from inv
Martijn Tonies
Database Workbench - tool for InterBase, Firebird, MySQL, Oracle & MS SQL
Server
Upscene Productions
http://www.upscene.com
My thoughts:
http://blog.upscene.com/martijn/
Database development questions? Check the forum!
http://www.databasedevelopmentforum.com