Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
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.
Hi,I get values as shown in column 'val'. i need to display values as shown in column 'required'.
declare @tb1 table (val float,required varchar(255))insert into @tb1select 1,'1' union allselect 1.12345,'1.12' union allselect 1.12684,'1.13' union allselect 1.1,'1.1'select * from @tb1
is there any way i can know what is the length of numbers after decimal so that i can get data as shown in the column 'required'?