public function value(float $value, int $decimal_points = null): string
    {
        if (is_null($decimal_points)) {
            return $value;
        }

        return $this->decimal($value, $decimal_points);
    }
public function value(float $value, int $decimal_points = null): string
    {
        if (is_null($decimal_points)) {
            return $value;
        }

        return $this->decimal($value, $decimal_points);
    }
public function value ( float $ value , int $ decimal_points = null ) : string { if ( is_null ( $ decimal_points ) ) { return $ value ; } return $ this -> decimal ( $ value , $ decimal_points ) ; }
Get formatted value.

@param  float $value
@param  int|null $decimal_points
@return string
Get formatted value .