number rounded down in select statement with equation SQL Server 2012 -


this question has answer here:

if do

select 18000*13/100000

it returns 2

when should return 2.34

how make return correct number?

thanks

select 18000*13/100000.0 

use float either in numerator or denominator float.


Comments

Popular posts from this blog

1111. appearing after print sequence - php -

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

Ruby on Rails, ActiveRecord, Postgres, UTF-8 and ASCII-8BIT encodings -