@bates-solutions/stripe API Reference - v2.2.1
    Preparing search index...

    Function fromMinor

    • Convert an amount in the smallest currency unit to a major-unit amount.

      Uses the same currency rules as toMinor (case-insensitive): divides by 1 for zero-decimal currencies, 1000 for three-decimal currencies and 100 otherwise (including isk and ugx).

      Parameters

      • minor: number

        Amount in the smallest currency unit

      • currency: CurrencyCode = 'usd'

        Currency code, any case (default: usd)

      Returns number

      Major-unit amount

      If currency is not a non-empty string

      fromMinor(1050) // 10.50
      fromMinor(1000, 'jpy') // 1000
      fromMinor(5120, 'kwd') // 5.12
      fromMinor(500, 'isk') // 5