Page 1 of 1

how do i write a float number that currently i see on screen

Posted: Sun Mar 28, 2004 4:52 am
by pelegk2
i havea float value in my database : 1000000
i see it on screen as : 1e+006
how do i do i do so i will see : 1000000

Posted: Sun Mar 28, 2004 5:26 am
by markl999
Got some example code? Seeing 1e+006 is unexpected behaviour :o

Posted: Sun Mar 28, 2004 6:39 am
by pelegk2
this is all i do :
echo "<td>".$row['once']."</td>";
and the onceis a field of float type

Posted: Sun Mar 28, 2004 9:28 am
by markl999
Sounds like you defined the column type as float with any precision values, Eg float(6,2) .. if you defined it as float with length/values of 6,2 then the number would come back as 1000000.00