public static function nicePrice($a) { $d = substr(round($a), -1); if ($d < 0.5) { $a = ImpLib::round_to($a, 1, 0.1, $a); } else { $a = ImpLib::round_to($a, 1, 0.1, $a); } return $a; }
public static function nicePrice($a) { $d = substr(round($a), -1); if ($d < 0.5) { $a = ImpLib::round_to($a, 1, 0.1, $a); } else { $a = ImpLib::round_to($a, 1, 0.1, $a); } return $a; }