2

Is there an easy way to strip trailing zeros from decimals so that

select amount from table

gives you 2.5 instead of 2.50 or 3 instead of 3.00?

Thanks,

Tom

marc_s
  • 704,970
  • 168
  • 1,303
  • 1,425
Sreekumar P
  • 5,728
  • 10
  • 56
  • 80
  • Duplicate: http://stackoverflow.com/questions/2938296/remove-trailing-zeros-from-decimal-in-sql-server – Kashif Oct 21 '10 at 07:21

1 Answers1

2

remove-trailing-zeros-from-decimal-in-sql-server

Community
  • 1
  • 1
Kashif
  • 13,351
  • 17
  • 63
  • 98