February 4, 2002 at 9:58 pm
declare @no float
select @no=12
How do I print it out as 12.0?
February 4, 2002 at 11:13 pm
Hi,
Try to do like this.
declare @no float
set @no=12
Select @no
Rafiq
Yours SQL Friend
February 4, 2002 at 11:49 pm
but if u print it out the .0 will be missing.
print @no
I need to format my numbers to 1 decimal place.
February 5, 2002 at 2:43 am
print cast(@no as decimal (10,1)) should do it.
Paul Ibison
Paul Ibison
Paul.Ibison@replicationanswers.com
February 7, 2002 at 3:02 am
This works but when I pass the data to ADO recordset and display on asp page, the decimal disappear again.
Does that mean that I have to do formatting in the asp code?
February 7, 2002 at 10:14 am
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy