I wish to ROUND a calculation to one decimal place without any trailing zeroes.
I thought this would be simple. I am using
But I am getting results like 0.2000000000000 0001
and 0.2999999999999 9999.
Can anybody explain why and how to return only 0.20 and 0.29
I thought this would be simple. I am using
Code:
CASE WHEN retail > 0 THEN ROUND((retail - wholesale)/retail,1) ELSE 0 END profit,
and 0.2999999999999 9999.
Can anybody explain why and how to return only 0.20 and 0.29
Comment