I know there are different variations of this question asked.
But what I am trying to do is that, there is a table with a numeric column (12,0)
that has data looking like
Units
-----
-1222222
0
-19
21123021
What they really mean is this
Units
-----
-12222.22
0.00
-0.19
211230.21
With two decimal places in the last digits of each number.
I am struggling to convert these numbers to a two decimal place float column(Units)
Best Answer
Something like this will do:
You can also use
format(foo,'N2')
and a million other ways.