Update string.utils.php

This commit is contained in:
Namhyeon Go 2019-09-30 11:03:48 +09:00 committed by GitHub
parent 31759a0ef8
commit 1ed4722894
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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));
} }
} }