Php variable

General discussions related to php

Moderators: egami, macek, gesf

Post Reply
MarioParty
New php-forum User
New php-forum User
Posts: 42
Joined: Tue Aug 02, 2011 2:52 am

Sun Aug 04, 2013 1:58 am

Code: Select all

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

johnj
php-forum Super User
php-forum Super User
Posts: 1803
Joined: Thu Mar 10, 2011 5:07 pm

Tue Aug 06, 2013 10:52 pm

$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;

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 2 guests