func (client *NumberClient) getBigFloatHandleError(resp *http.Response) error {
	body, err := runtime.Payload(resp)
	if err != nil {
		return runtime.NewResponseError(err, resp)
	}
	errType := Error{raw: string(body)}
	if err := runtime.UnmarshalAsJSON(resp, &errType); err != nil {
		return runtime.NewResponseError(fmt.Errorf("%s\n%s", string(body), err), resp)
	}
	return runtime.NewResponseError(&errType, resp)
}
getBigFloatHandleError handles the GetBigFloat error response.
package numbergroup
import (
	"context"
	"fmt"
	"github.com/Azure/azure-sdk-for-go/sdk/azcore/policy"
	"github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime"
	"net/http"
)
type NumberClient struct {
	con *Connection
}
func NewNumberClient(con *Connection) *NumberClient {
	return &NumberClient{con: con}
}
func (client *NumberClient) GetBigDecimal(ctx context.Context, options *NumberGetBigDecimalOptions) (NumberGetBigDecimalResponse, error) {
	req, err := client.getBigDecimalCreateRequest(ctx, options)
	if err != nil {
		return NumberGetBigDecimalResponse{}, err
	}
	resp, err := client.con.Pipeline().Do(req)
	if err != nil {
		return NumberGetBigDecimalResponse{}, err
	}
	if !runtime.HasStatusCode(resp, http.StatusOK) {
		return NumberGetBigDecimalResponse{}, client.getBigDecimalHandleError(resp)
	}
	return client.getBigDecimalHandleResponse(resp)
}
func (client *NumberClient) getBigDecimalCreateRequest(ctx context.Context, options *NumberGetBigDecimalOptions) (*policy.Request, error) {
	urlPath := "/number/big/decimal/2.5976931e+101"
	req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.con.Endpoint(), urlPath))
	if err != nil {
		return nil, err
	}
	req.Raw().Header.Set("Accept", "application/json")
	return req, nil
}
func (client *NumberClient) getBigDecimalHandleResponse(resp *http.Response) (NumberGetBigDecimalResponse, error) {
	result := NumberGetBigDecimalResponse{RawResponse: resp}
	if err := runtime.UnmarshalAsJSON(resp, &result.Value); err != nil {
		return NumberGetBigDecimalResponse{}, runtime.NewResponseError(err, resp)
	}
	return result, nil
}
func (client *NumberClient) getBigDecimalHandleError(resp *http.Response) error {
	body, err := runtime.Payload(resp)
	if err != nil {
		return runtime.NewResponseError(err, resp)
	}
	errType := Error{raw: string(body)}
	if err := runtime.UnmarshalAsJSON(resp, &errType); err != nil {
		return runtime.NewResponseError(fmt.Errorf("%s\n%s", string(body), err), resp)
	}
	return runtime.NewResponseError(&errType, resp)
}
func (client *NumberClient) GetBigDecimalNegativeDecimal(ctx context.Context, options *NumberGetBigDecimalNegativeDecimalOptions) (NumberGetBigDecimalNegativeDecimalResponse, error) {
	req, err := client.getBigDecimalNegativeDecimalCreateRequest(ctx, options)
	if err != nil {
		return NumberGetBigDecimalNegativeDecimalResponse{}, err
	}
	resp, err := client.con.Pipeline().Do(req)
	if err != nil {
		return NumberGetBigDecimalNegativeDecimalResponse{}, err
	}
	if !runtime.HasStatusCode(resp, http.StatusOK) {
		return NumberGetBigDecimalNegativeDecimalResponse{}, client.getBigDecimalNegativeDecimalHandleError(resp)
	}
	return client.getBigDecimalNegativeDecimalHandleResponse(resp)
}
func (client *NumberClient) getBigDecimalNegativeDecimalCreateRequest(ctx context.Context, options *NumberGetBigDecimalNegativeDecimalOptions) (*policy.Request, error) {
	urlPath := "/number/big/decimal/-99999999.99"
	req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.con.Endpoint(), urlPath))
	if err != nil {
		return nil, err
	}
	req.Raw().Header.Set("Accept", "application/json")
	return req, nil
}
func (client *NumberClient) getBigDecimalNegativeDecimalHandleResponse(resp *http.Response) (NumberGetBigDecimalNegativeDecimalResponse, error) {
	result := NumberGetBigDecimalNegativeDecimalResponse{RawResponse: resp}
	if err := runtime.UnmarshalAsJSON(resp, &result.Value); err != nil {
		return NumberGetBigDecimalNegativeDecimalResponse{}, runtime.NewResponseError(err, resp)
	}
	return result, nil
}
func (client *NumberClient) getBigDecimalNegativeDecimalHandleError(resp *http.Response) error {
	body, err := runtime.Payload(resp)
	if err != nil {
		return runtime.NewResponseError(err, resp)
	}
	errType := Error{raw: string(body)}
	if err := runtime.UnmarshalAsJSON(resp, &errType); err != nil {
		return runtime.NewResponseError(fmt.Errorf("%s\n%s", string(body), err), resp)
	}
	return runtime.NewResponseError(&errType, resp)
}
func (client *NumberClient) GetBigDecimalPositiveDecimal(ctx context.Context, options *NumberGetBigDecimalPositiveDecimalOptions) (NumberGetBigDecimalPositiveDecimalResponse, error) {
	req, err := client.getBigDecimalPositiveDecimalCreateRequest(ctx, options)
	if err != nil {
		return NumberGetBigDecimalPositiveDecimalResponse{}, err
	}
	resp, err := client.con.Pipeline().Do(req)
	if err != nil {
		return NumberGetBigDecimalPositiveDecimalResponse{}, err
	}
	if !runtime.HasStatusCode(resp, http.StatusOK) {
		return NumberGetBigDecimalPositiveDecimalResponse{}, client.getBigDecimalPositiveDecimalHandleError(resp)
	}
	return client.getBigDecimalPositiveDecimalHandleResponse(resp)
}
func (client *NumberClient) getBigDecimalPositiveDecimalCreateRequest(ctx context.Context, options *NumberGetBigDecimalPositiveDecimalOptions) (*policy.Request, error) {
	urlPath := "/number/big/decimal/99999999.99"
	req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.con.Endpoint(), urlPath))
	if err != nil {
		return nil, err
	}
	req.Raw().Header.Set("Accept", "application/json")
	return req, nil
}
func (client *NumberClient) getBigDecimalPositiveDecimalHandleResponse(resp *http.Response) (NumberGetBigDecimalPositiveDecimalResponse, error) {
	result := NumberGetBigDecimalPositiveDecimalResponse{RawResponse: resp}
	if err := runtime.UnmarshalAsJSON(resp, &result.Value); err != nil {
		return NumberGetBigDecimalPositiveDecimalResponse{}, runtime.NewResponseError(err, resp)
	}
	return result, nil
}
func (client *NumberClient) getBigDecimalPositiveDecimalHandleError(resp *http.Response) error {
	body, err := runtime.Payload(resp)
	if err != nil {
		return runtime.NewResponseError(err, resp)
	}
	errType := Error{raw: string(body)}
	if err := runtime.UnmarshalAsJSON(resp, &errType); err != nil {
		return runtime.NewResponseError(fmt.Errorf("%s\n%s", string(body), err), resp)
	}
	return runtime.NewResponseError(&errType, resp)
}
func (client *NumberClient) GetBigDouble(ctx context.Context, options *NumberGetBigDoubleOptions) (NumberGetBigDoubleResponse, error) {
	req, err := client.getBigDoubleCreateRequest(ctx, options)
	if err != nil {
		return NumberGetBigDoubleResponse{}, err
	}
	resp, err := client.con.Pipeline().Do(req)
	if err != nil {
		return NumberGetBigDoubleResponse{}, err
	}
	if !runtime.HasStatusCode(resp, http.StatusOK) {
		return NumberGetBigDoubleResponse{}, client.getBigDoubleHandleError(resp)
	}
	return client.getBigDoubleHandleResponse(resp)
}
func (client *NumberClient) getBigDoubleCreateRequest(ctx context.Context, options *NumberGetBigDoubleOptions) (*policy.Request, error) {
	urlPath := "/number/big/double/2.5976931e+101"
	req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.con.Endpoint(), urlPath))
	if err != nil {
		return nil, err
	}
	req.Raw().Header.Set("Accept", "application/json")
	return req, nil
}
func (client *NumberClient) getBigDoubleHandleResponse(resp *http.Response) (NumberGetBigDoubleResponse, error) {
	result := NumberGetBigDoubleResponse{RawResponse: resp}
	if err := runtime.UnmarshalAsJSON(resp, &result.Value); err != nil {
		return NumberGetBigDoubleResponse{}, runtime.NewResponseError(err, resp)
	}
	return result, nil
}
func (client *NumberClient) getBigDoubleHandleError(resp *http.Response) error {
	body, err := runtime.Payload(resp)
	if err != nil {
		return runtime.NewResponseError(err, resp)
	}
	errType := Error{raw: string(body)}
	if err := runtime.UnmarshalAsJSON(resp, &errType); err != nil {
		return runtime.NewResponseError(fmt.Errorf("%s\n%s", string(body), err), resp)
	}
	return runtime.NewResponseError(&errType, resp)
}
func (client *NumberClient) GetBigDoubleNegativeDecimal(ctx context.Context, options *NumberGetBigDoubleNegativeDecimalOptions) (NumberGetBigDoubleNegativeDecimalResponse, error) {
	req, err := client.getBigDoubleNegativeDecimalCreateRequest(ctx, options)
	if err != nil {
		return NumberGetBigDoubleNegativeDecimalResponse{}, err
	}
	resp, err := client.con.Pipeline().Do(req)
	if err != nil {
		return NumberGetBigDoubleNegativeDecimalResponse{}, err
	}
	if !runtime.HasStatusCode(resp, http.StatusOK) {
		return NumberGetBigDoubleNegativeDecimalResponse{}, client.getBigDoubleNegativeDecimalHandleError(resp)
	}
	return client.getBigDoubleNegativeDecimalHandleResponse(resp)
}
func (client *NumberClient) getBigDoubleNegativeDecimalCreateRequest(ctx context.Context, options *NumberGetBigDoubleNegativeDecimalOptions) (*policy.Request, error) {
	urlPath := "/number/big/double/-99999999.99"
	req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.con.Endpoint(), urlPath))
	if err != nil {
		return nil, err
	}
	req.Raw().Header.Set("Accept", "application/json")
	return req, nil
}
func (client *NumberClient) getBigDoubleNegativeDecimalHandleResponse(resp *http.Response) (NumberGetBigDoubleNegativeDecimalResponse, error) {
	result := NumberGetBigDoubleNegativeDecimalResponse{RawResponse: resp}
	if err := runtime.UnmarshalAsJSON(resp, &result.Value); err != nil {
		return NumberGetBigDoubleNegativeDecimalResponse{}, runtime.NewResponseError(err, resp)
	}
	return result, nil
}
func (client *NumberClient) getBigDoubleNegativeDecimalHandleError(resp *http.Response) error {
	body, err := runtime.Payload(resp)
	if err != nil {
		return runtime.NewResponseError(err, resp)
	}
	errType := Error{raw: string(body)}
	if err := runtime.UnmarshalAsJSON(resp, &errType); err != nil {
		return runtime.NewResponseError(fmt.Errorf("%s\n%s", string(body), err), resp)
	}
	return runtime.NewResponseError(&errType, resp)
}
func (client *NumberClient) GetBigDoublePositiveDecimal(ctx context.Context, options *NumberGetBigDoublePositiveDecimalOptions) (NumberGetBigDoublePositiveDecimalResponse, error) {
	req, err := client.getBigDoublePositiveDecimalCreateRequest(ctx, options)
	if err != nil {
		return NumberGetBigDoublePositiveDecimalResponse{}, err
	}
	resp, err := client.con.Pipeline().Do(req)
	if err != nil {
		return NumberGetBigDoublePositiveDecimalResponse{}, err
	}
	if !runtime.HasStatusCode(resp, http.StatusOK) {
		return NumberGetBigDoublePositiveDecimalResponse{}, client.getBigDoublePositiveDecimalHandleError(resp)
	}
	return client.getBigDoublePositiveDecimalHandleResponse(resp)
}
func (client *NumberClient) getBigDoublePositiveDecimalCreateRequest(ctx context.Context, options *NumberGetBigDoublePositiveDecimalOptions) (*policy.Request, error) {
	urlPath := "/number/big/double/99999999.99"
	req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.con.Endpoint(), urlPath))
	if err != nil {
		return nil, err
	}
	req.Raw().Header.Set("Accept", "application/json")
	return req, nil
}
func (client *NumberClient) getBigDoublePositiveDecimalHandleResponse(resp *http.Response) (NumberGetBigDoublePositiveDecimalResponse, error) {
	result := NumberGetBigDoublePositiveDecimalResponse{RawResponse: resp}
	if err := runtime.UnmarshalAsJSON(resp, &result.Value); err != nil {
		return NumberGetBigDoublePositiveDecimalResponse{}, runtime.NewResponseError(err, resp)
	}
	return result, nil
}
func (client *NumberClient) getBigDoublePositiveDecimalHandleError(resp *http.Response) error {
	body, err := runtime.Payload(resp)
	if err != nil {
		return runtime.NewResponseError(err, resp)
	}
	errType := Error{raw: string(body)}
	if err := runtime.UnmarshalAsJSON(resp, &errType); err != nil {
		return runtime.NewResponseError(fmt.Errorf("%s\n%s", string(body), err), resp)
	}
	return runtime.NewResponseError(&errType, resp)
}
func (client *NumberClient) GetBigFloat(ctx context.Context, options *NumberGetBigFloatOptions) (NumberGetBigFloatResponse, error) {
	req, err := client.getBigFloatCreateRequest(ctx, options)
	if err != nil {
		return NumberGetBigFloatResponse{}, err
	}
	resp, err := client.con.Pipeline().Do(req)
	if err != nil {
		return NumberGetBigFloatResponse{}, err
	}
	if !runtime.HasStatusCode(resp, http.StatusOK) {
		return NumberGetBigFloatResponse{}, client.getBigFloatHandleError(resp)
	}
	return client.getBigFloatHandleResponse(resp)
}
func (client *NumberClient) getBigFloatCreateRequest(ctx context.Context, options *NumberGetBigFloatOptions) (*policy.Request, error) {
	urlPath := "/number/big/float/3.402823e+20"
	req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.con.Endpoint(), urlPath))
	if err != nil {
		return nil, err
	}
	req.Raw().Header.Set("Accept", "application/json")
	return req, nil
}
func (client *NumberClient) getBigFloatHandleResponse(resp *http.Response) (NumberGetBigFloatResponse, error) {
	result := NumberGetBigFloatResponse{RawResponse: resp}
	if err := runtime.UnmarshalAsJSON(resp, &result.Value); err != nil {
		return NumberGetBigFloatResponse{}, runtime.NewResponseError(err, resp)
	}
	return result, nil
}