Switch to full style
:read: Start PHP with us. Includes topics to help you in php
Post a reply

Dividing two Integer values

Mon Oct 27, 2008 1:11 pm

Code:
<?
$a
= 85;
$b = 24;
echo
"<P>Original value of \$a is $a and \$b is
$b</P>"
;

$c = $a / $b;
echo
"<P>Divided \$a by \$b and got $c</P>";
?>




Post a reply
  Related Posts  to : Dividing two Integer values
 Dividing a String into Tokens with strtok()     -  
 integer value overflow     -  
 finding the largest integer     -  
 Invalid integer formats     -  
 handle integer overflows and underflows     -  
 rounding performed under integer division     -  
 Integer value compare with equal sign     -  
 Ensuring integer are written as 32 bits     -  
 Bresenham (midpoint) algorithm (integer DDA) drawing line     -  
 modulus of two values     -  

Topic Tags

PHP Variables