function formatPrice( cost, currencyCode, options = {} ) {
	if ( undefined !== options.precision ) {
		cost = applyPrecision( cost, options.precision );
	}

	return formatCurrency( cost, currencyCode, cost % 1 > 0 ? {} : { precision: 0 } );
}
function formatPrice( cost, currencyCode, options = {} ) {
	if ( undefined !== options.precision ) {
		cost = applyPrecision( cost, options.precision );
	}

	return formatCurrency( cost, currencyCode, cost % 1 > 0 ? {} : { precision: 0 } );
}
function formatPrice ( cost , currencyCode , options = { } ) { if ( undefined !== options . precision ) { cost = applyPrecision ( cost , options . precision ) ; } return formatCurrency ( cost , currencyCode , cost % 1 > 0 ? { } : { precision : 0 } ) ; }
Formats price given cost and currency

@param {Number} cost - cost
@param {String} currencyCode - currency code to format with
@param {Object} options - options containing precision
@returns {String} - Returns a formatted price
Formats price given cost and currency