evoShop.toCurrency( number [ , options ] )

arguments:

  • number: number to be converted to currency
  • options (optional): options for currency formatting, used to override settings returned by evoShop.currency()
  • returns:

  • The given number formatted as currency, using the evoShop.currency() options and any given options.
  • See the Currency Documentation for more info about currency options.

    evoShop({
      currency: "USD"
    });
    
    evoShop.toCurrency( 9.99 ); // $9.99
    evoShop.toCurrency( 9.99, { symbol: '#' } ); // #9.99