• Convert given amount of copper to some other currency, excess is placed on less valuable coinage.

    Parameters

    • cp: number

      Copper quantity

    • Optionaltarget:
          | "pp"
          | "gp"
          | "sp"
          | "cp"

      Target unit. Defaults to standard currency.

    • Optionaloptions: {
          pad: undefined | boolean;
      } = {}

      Additional options

      • pad: undefined | boolean

        Pad return value by including zeroed currencies

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

    • Resulting conversion