Hi
I've got a column which is a decimal(18,6) which contains numbers with varying numbers of decimal places. Couple of examples:
0.00025
0.0005
300.
Stored as they are, when I write a SELECT statement, the numbers are output as 0.000250, 0.000500, 300.000000 respectively.
I require a way of dropping the trailing zeros after the decimal places, outputting the numbers which went in. Is there a function to do this?? Using ROUND() will affect the values so I can't use that. Any other suggestions of ways of doing this would be gratefully appreciated.
Thanks
Chris
I've got a column which is a decimal(18,6) which contains numbers with varying numbers of decimal places. Couple of examples:
0.00025
0.0005
300.
Stored as they are, when I write a SELECT statement, the numbers are output as 0.000250, 0.000500, 300.000000 respectively.
I require a way of dropping the trailing zeros after the decimal places, outputting the numbers which went in. Is there a function to do this?? Using ROUND() will affect the values so I can't use that. Any other suggestions of ways of doing this would be gratefully appreciated.
Thanks
Chris