• Parameters

    • price: number

      price to convert

    • OptionalexchangeRate: number = 1

      currency exchange rate

    • Optionalceil: boolean = true

      flag to indicate whether the price should be rounded up

    Returns number

    converted price to USD