My database has a field "TestNumber numeric(27,10)", it has the value like those numbers:
56.1234567800
0.0000000010
1.0010100000
Convert(Varchar(28),TestNumber) will convert the above TestNumber to VARCHAR.
Is there any function in sql (I use sql server 2008R2) to trim the tailing '0's in decimal places so I actually could get those strings:
'56.12345678'
'0.000000001'
'1.00101'