Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

How to remove trailing zeros from a decimal (type) value?

$
0
0

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


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>