int to float
Posted: Thu Nov 16, 2006 2:54 am
i want to convert int to float how can i do so?
should give 2.00 not 2
Code: Select all
$a = 10;
echo $a/5;A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
$a = 10;
echo $a/5;Code: Select all
$a = (float) 5;