Hi. I'm running a query with a calculated field that derives its calculation from fields with decimal points. I would like my output to not round off my output to an integer. Is there an option in SQL that anyone knows of?
There are a couple of options, but the most common is;
float( decimal( Value1, 13, 2 ) / decimal( Value2, 9, 3 ) )
or a variation of the statement.
decimal changes the value of "Value1" to a 13,2 field
Float floats the decimal point
You could also enter;
decimal(float(~~~~~~~), 13,2) = results in a 13,2 field
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.