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
 General SQL Server Forums
 New to SQL Server Programming
 How to remove trailing zeros from a decimal (type)

Author  Topic 

Darts75
Starting Member

27 Posts

Posted - 2014-03-16 : 21:18:17
Hi Everyone,

I would like to 'drop' some trailing zeros from a decimal value, e.g.: 50.000000, and I am wondering how to go about this?

The value is definitely of decimal type, and in this instance I know that I want to eliminate exactly six (6) zeros.

Any help here will be greatly appreciated.

Kind Regards,

David

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2014-03-16 : 21:24:11
This is just a presentation issue. Shouldn't it be done in your front end application ?


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

Go to Top of Page
   

- Advertisement -