masterofollies
01-26-2008, 07:12 PM
I have a problems. If I divide a number in half and it's not even, it gives me decimals. Like this
$points = 5;
$newpoints = $member["points"]/2;
Your new points are $newpoints
Which comes up as 2.5
I didn't write it the same way, but I am sure you understand. How can I get it to exclude decimals and round to the next number? So it would be a 2 or 3 ?
$points = 5;
$newpoints = $member["points"]/2;
Your new points are $newpoints
Which comes up as 2.5
I didn't write it the same way, but I am sure you understand. How can I get it to exclude decimals and round to the next number? So it would be a 2 or 3 ?