Home Forums SQL Server 2005 T-SQL (SS2K5) How to trim the decimal places? RE: How to trim the decimal places?
blessybaby
SSC Journeyman
Points: 89
More actions
September 19, 2008 at 3:38 am
#874081
Pls try this
DECLARE @Num4 AS DECIMAL(10,4)
SET @Num4 = 1234.9876
SELECT STR(@Num4,Len(@Num4),2)