Type alias RoundingMode

RoundingMode: "up" | "down" | "truncate" | "halfUp" | "default" | "halfDown" | "halfEven" | "banker" | "ceiling" | "ceil" | "floor"

Controls handling of arithmetic exceptions and rounding.

  • "up": round away from zero
  • "down" or "truncate": round towards zero (truncate)
  • "halfUp" or "default": round towards the nearest neighbor, unless both neighbors are equidistant, in which case round away from zero.
  • "halfDown": round towards the nearest neighbor, unless both neighbors are equidistant, in which case round towards zero.
  • "halfEven" or "banker": round towards the nearest neighbor, unless both neighbors are equidistant, in which case round towards the even neighbor (Banker’s rounding)
  • "ceiling" or "ceil": round towards positive infinity
  • "floor": round towards negative infinity

Generated using TypeDoc