STR() is very useful for that, like so:
SELECT STR(ROUND(((12.13 - 10) / 12.13 ) * 100,2), 10, 2) + '%'
Since you want to round to 2 decimal places, you need to use ,2 rather than ,1 in the ROUND() function :-).
Main Topics
Browse All TopicsThis is a easy one (Can't for the life of me figure it out)
I want to convert a number to a string by rounding to one decimal place and and then appending a '%' to it, so for example 17.54732 => 17.55%
I had something like this : select convert(varchar,round(((12
but it returns: 17.6000000%
It should return 17.6%
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Hi,
Do it as below :-
--------------------------
declare
@num float
set @num = 222.3375
set @num = round(@num, 2)
print substring(convert(varchar,
--------------------------
Regards,
KB
Business Accounts
Answer for Membership
by: LowfatspreadPosted on 2005-01-05 at 11:55:10ID: 12965723
round just rounds off to the specified numer of places ...
t(decimal( 9,1),round (((12.13 - 10) / 12.13 ) * 100,1))) + '%'
it doesn't go on to "truncate" the actual result....
so
convert(varchar(11),conver