public function decimal($values, string $currency = null, int $decimal_points = 2): string
    {
        [$className, $value] = $this->classAndValue($values, $currency);

        return (new $className)->decimal($value, $decimal_points);
    }
public function decimal($values, string $currency = null, int $decimal_points = 2): string
    {
        [$className, $value] = $this->classAndValue($values, $currency);

        return (new $className)->decimal($value, $decimal_points);
    }
public function decimal ( $ values , string $ currency = null , int $ decimal_points = 2 ) : string { [ $ className , $ value ] = $ this -> classAndValue ( $ values , $ currency ) ; return ( new $ className ) -> decimal ( $ value , $ decimal_points ) ; }
Convert value to decimal.

@param  string|array $values
@param  string|null $currency
@param  int $decimal_points
@return string
Convert value to decimal .