• Split copper currency into multiple currencies favoring the one with highest rates.

    Parameters

    • cp: number

      Copper

    • Optionaloptions: {
          omit: undefined | (
              | "pp"
              | "gp"
              | "sp"
              | "cp")[];
          pad: undefined | boolean;
          standard: undefined | boolean;
      } = {}

      Additional options

      • omit: undefined | (
            | "pp"
            | "gp"
            | "sp"
            | "cp")[]

        Omit these types from the result. Baseline currency can not be omitted.

      • pad: undefined | boolean

        Pad return value by including zeroed currencies

      • standard: undefined | boolean

        If true, no coinage of greater value than the pf1.config.currency.standard standard currency is included.

    Returns Record<
        | "pp"
        | "gp"
        | "sp"
        | "cp", number>

    The various currencies.