@tremendous/help
    Preparing search index...

    Function convertCurrency

    • Converts an amount from one currency to another using the provided rates. Falls back to returning the numeric amount unchanged when conversion is not possible (missing currency, missing rate, or same currency).

      Parameters

      • amount: string | number
      • options: { from?: string; rates: ExchangeRates; to?: string }

      Returns number