Is there a way to divide two integers and round to 3 decimal places with only one cast/convert?
All the examples I see convert
to decimal
, then round
. Some cast both numerator and denominator, etc. I've seen round
with floor
or ceiling
, etc.
I just want to use one cast and I'm done.
For example, 1/3 would be 0.333
. 5/3 is 1.667
I'm doing this to cast that result as varchar
.