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

    Parameters

    • cp: number

      Copper quantity

    • Optional target: "pp" | "gp" | "sp" | "cp"

      Target unit. Defaults to standard currency.

    • Optional options: {
          pad: undefined | boolean;
      } = {}

      Additional options

      • pad: undefined | boolean

        Pad return value by including zeroed currencies

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

    • Resulting conversion

Generated using TypeDoc