public function round($subject, $precision = 0)
    {
        if (!is_numeric($subject)) {
            return NAN;
        }
        $subject = floatval($subject);
        if ($precision != null && !is_int($precision)) {
            return NAN;
        }
        return round($subject, $precision);
    }