PHPBuilder - Percentage



RSS Twitter
Snippets Math Functions

Percentage

by: Lee Patterson
|
April 5, 2002

Version: 1.0

Type: Function

Category: Math Functions

License: GNU General Public License

Description: Takes two paramaters ($int1, $int2) and uses them to calculate the percentage.



<?php

Function percentage($int1, $int2) {
	$per = $int1 / $int2;
	$res = $per * 100;
	return $res;
}

?>

Comment and Contribute

Your comment has been submitted and is pending approval.

Author:
Lee Patterson

Comment:



Comment:

(Maximum characters: 1200). You have characters left.