SDU Tools: Truncate trailing zeroes in SQL Server T-SQL

added by DotNetKicks
11/20/2019 3:13:27 PM

795 Views

Often when I convert a decimal number to a string in T-SQL, I want the simplest version of the number. I really don't want any trailing zeroes (i.e. at the end of the number). In our free SDU Tools for developers and DBAs, we added a function to do just that: TruncateTrailingZeroes.


0 comments