I am having problem to format digits in my select column.I used FORMAT but it doesn\'t work. Here is my column:
sum(cast(datediff(second, IEC.CREATE_DATE, IEC.ST
Assume that you have dynamic currency precision
value => 1.002431
currency precision => 3
`result => 1.002
CAST(Floor(your_float_value) AS VARCHAR) + '.' + REPLACE(STR(FLOOR((your_float_value FLOOR(your_float_value)) * power(10,cu_precision)), cu_precision), SPACE(1), '0')