Subject Re: [firebird-support] division operation doesn't returns decimals ref/eDN2041595759
Author Martijn Tonies
> division operation doesn't returns decimals
>
>
>
> For instance:
>
>
>
> select (123/100) from inv
>
> returns
>
> 1
>
>
>
> Any comments are accepted

Search the group.

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