quiTech
asked on
Transact-SQL Loses decimals on divide
Hello,
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?
Thanks!
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?
Thanks!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER