Transact-SQL Loses decimals on divide
Posted on 2004-08-08
Why, does 15 / 60 return 0? For example, in transact-sql, if I execute the query
print 15 / 60
SQL returns 0 instead of 0.25.
I guess it is assuming an Integer datatype for some reason.... how could I fix that?