function pDraw::modulo in Visitors 7.2
Same name and namespace in other branches
- 7 pChart/class/pDraw.class.php \pDraw::modulo()
1 call to pDraw::modulo()
- pDraw::processScale in pChart/
class/ pDraw.class.php
File
- pChart/
class/ pDraw.class.php, line 2606
Class
Code
function modulo($Value1, $Value2) {
if (floor($Value2) == 0) {
return 0;
}
if (floor($Value2) != 0) {
return $Value1 % $Value2;
}
$MinValue = min($Value1, $Value2);
$Factor = 10;
while (floor($MinValue * $Factor) == 0) {
$Factor = $Factor * 10;
}
return $Value1 * $Factor % ($Value2 * $Factor);
}