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

    Parameters

    • cp: number

      Copper quantity

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

      Target unit. Defaults to standard currency.

    • Optionaloptions: { pad?: boolean } = {}

      Additional options

      • Optionalpad?: boolean

        Pad return value by including zeroed currencies

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

    • Resulting conversion