Skip to content

Commit

Permalink
Fix #1098
Browse files Browse the repository at this point in the history
cot_declension bug on float type values withou fractional part
  • Loading branch information
macik committed Dec 4, 2012
1 parent abc3416 commit 3d97f57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/functions.php
Expand Up @@ -5185,7 +5185,7 @@ function cot_declension($digit, $expr, $onlyword = false, $canfrac = false)
$is_frac = false;
if ($canfrac)
{
if (is_float($digit) || mb_strpos($digit, '.') !== false)
if ((is_float($digit) && $digit!=floor($digit)) || mb_strpos($digit, '.') !== false)
{
$i = floatval($digit);
$is_frac = true;
Expand Down

0 comments on commit 3d97f57

Please sign in to comment.