round(something, 0); 을 Util::round(somehing); 으로 변경.

This commit is contained in:
Hide_D committed 2018-04-08 21:52:14 +09:00
1 parent 5b926ae5c5
commit 4e22cf3515
20 files changed
+271 -271

No files matched your search

+2 -2
View File
@@ -74,7 +74,7 @@ class ChangeCity extends \sammo\Event\Action{
$matches = null;
if(preg_match(self::REGEXP_PERCENT, $value, $matches)){
$value = (int)round((float)$matches[1], 0);
$value = Util::round((float)$matches[1]);
return DB::db()->sqleval('%i', Util::valueFit($value, 0, 100));
}
@@ -106,7 +106,7 @@ class ChangeCity extends \sammo\Event\Action{
$matches = null;
if(preg_match(self::REGEXP_PERCENT, $value, $matches)){
$value = (int)round((float)$matches[1], 0);
$value = Util::round((float)$matches[1]);
return DB::db()->sqleval('ROUND(%b * %d, 0)', $keyMax, $value/100);
}