• 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?: boolean } = {}

      Additional options

      • Optionalpad?: boolean

        Pad return value by including zeroed currencies

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

    • Resulting conversion