I have Two SQL Query Both Return
select round(convert(float,’24367.723′),2)
Result:24367.72
Second:
select convert(varchar(20),round(convert(float,’24367.723′),2))
Result:24367.7
Why the Second Query Return exclude the last digit after converting to varchar
Thanks in Advance
By not specifying a style parameter to the convert function you get the default style (0).
i.e. it is equivalent to doing
The default style for converting from float to varchar displays a maximum of 6 digits.