Amount: Something - Something = 407325.96875
How do i can make this function => ~
I don't know what is it, but i want ~ the amount of items for being answer without 10239293(.29383)
Thanks.
Printable View
Amount: Something - Something = 407325.96875
How do i can make this function => ~
I don't know what is it, but i want ~ the amount of items for being answer without 10239293(.29383)
Thanks.
you mean round 407325.96875 to a whole number? sorry i don't really get what you mean..
Yes i want it to be number without . between numbers it should say ~407326 without .96875
I'm not sure I get what you mean either, but you might be looking for the floor() function - it rounds down to a whole number.
or the round() function to round either down or up. or typecast it to being an int so that it autmatically removes decimal places.
PHP Code:$var = (int) 30223424.24234234;
i'm sure he wants to round from the separator into a whole number... if he got 40.546 the number will turn into 41 or if its 40.3 it will turn into 40... if thats what he wants then this might help: http://php.net/manual/en/function.round.php
Code:<?php
$var1 = "1534.4";
echo round($var1);
?>
uh, yeah, I mentioned that in my post already..
oh sorry didn't really read you post...
Thanks. Any suggestions for?: <?php $NormalTree = 13034431 - $_GET[Experience];
echo $NormalTree / 25 ?>
Code:<?php $NormalTree = 13034431 - $_GET[Experience];
echo round($NormalTree / 25); ?>