Home > widget-integration > ProductService > formatPrice

ProductService.formatPrice() method

Signature:

formatPrice(value: number | string | null | undefined, options?: {
		showCurrencyCodes?: boolean;
		showCentAsSuperscript?: boolean;
		removeDecimalPoint?: boolean;
		removePriceDecimal?: boolean;
	}): string | null;

Parameters

Parameter

Type

Description

value

number | string | null | undefined

options

{ showCurrencyCodes?: boolean; showCentAsSuperscript?: boolean; removeDecimalPoint?: boolean; removePriceDecimal?: boolean; }

(Optional)

Returns:

string | null