Hi,
I'm in the same boat as you, ra! I'm getting a double variable from MySQL (numbers: 18 or 18.1, for example). I want the numbers to have the decimal at all times though. This is the code I'm using:
$num1 = 458;
settype($num1,"double");
print $num1; //Prints "458"
I can't seem to get the ".xx" decimal at the end. Am I using the wrong function??
Please help.
Ilir.