Hex Core JS
    Preparing search index...

    Function getMinorToMajorUnitForCurrency

    • Returns the number of the minor unit of a currency (e.g. cents) that make up one major unit (e.g. dollars).

      Parameters

      • currency: string

        The currency to get the minor to major unit for.

      • locales: LocalesArgument = ...

        The locale(s) to use for formatting. Defaults to using getLocale.

      Returns number

      If the given currency is not supported by the browser.