Page 1 of 1

Re: Php variable

Posted: Sun Aug 04, 2013 1:58 am
by MarioParty

Code: Select all

<?php
$new_variable = ($follow*followers*bytes)/3;
echo $new_variable;
?>

Re: Php variable

Posted: Tue Aug 06, 2013 10:52 pm
by johnj
$temp1 = bcmul($follow,$followers, 2);
$temp2 = bcmul($temp1,$bytes,2);
$new_variable = bcdiv($temp2,3,0); // change 0 to some other number if you need more precision
echo ' New Variable is: '.$new_variable;