Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 How to remove one decimal place in an amount

Author  Topic 

MrLucky
Starting Member

1 Post

Posted - 2008-08-22 : 09:58:45
Hi all,

Im trying to remove one decimal place in an amount which has 3 decimal laces.. just need to remove only the last decimal lace in this amount what is the statement i should use ?

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2008-08-22 : 09:59:24
round(yourcol , 2)


KH
[spoiler]Time is always against us[/spoiler]

Go to Top of Page

RyanRandall
Master Smack Fu Yak Hacker

1074 Posts

Posted - 2008-08-22 : 10:02:59
Or: cast(yourcol as decimal(10,2))


Ryan Randall
Solutions are easy. Understanding the problem, now, that's the hard part.
Go to Top of Page
   

- Advertisement -