Evade zero division PHP Warning due to float overflow by factor

This commit is contained in:
Akihiro Uchida 2016-04-04 16:15:39 +09:00
parent d4ebe9761c
commit 1bb1344530
1 changed files with 1 additions and 0 deletions

View File

@ -2556,6 +2556,7 @@
if (floor($Value2) == 0) { return(0); }
if (is_infinite($Value2)) { return(0); }
if ($Value2 == 0.0) { return(0); }
if ($Value1 > $Value2) { return(0); }
if ($this->mod_check($Value1, $Value2)) { return(0); }
if (floor($Value2) != 0) { return($Value1 % $Value2); }