I need to get the float of a string. But am facing problem with 0 decimal values i.e -
floatval("10000.01") gives 10000.01
but
floatval("10000.00") is giving 10000
I need the later value as 10000.00 too. What am I missing?
I need to get the float of a string. But am facing problem with 0 decimal values i.e -
floatval("10000.01") gives 10000.01
but
floatval("10000.00") is giving 10000
I need the later value as 10000.00 too. What am I missing?