Update string.utils.php
This commit is contained in:
parent
31759a0ef8
commit
1ed4722894
|
@ -241,7 +241,7 @@ if(!check_function_exists("get_highlighted_html_by_words")) {
|
||||||
|
|
||||||
if(!check_function_exists("get_floating_percentage")) {
|
if(!check_function_exists("get_floating_percentage")) {
|
||||||
function get_floating_percentage($x, $a=2) {
|
function get_floating_percentage($x, $a=2) {
|
||||||
return round($x / 100, $a);
|
return round(floatval($x) / 100, floatval($a));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user