views:

16

answers:

1

how do i floor(or round) a number for a given precise?

example: 123333.333334567

after run function like floor(123333.333334567,3)

i must have 123333.333

i denoted Floor for my functionality!

+1  A: 

Presuming that you actually want to FLOOR and not ROUND you would do:

Select Floor(123333.333334567 * Power(10,3)) / Power(10,3)
Thomas