Type alias RoundingMode

RoundingMode: "ceil" | "floor" | "expand" | "trunc" | "halfCeil" | "halfFloor" | "halfExpand" | "halfTrunc" | "halfEven" | "halfOdd"
  • 'ceil': Round towards positive infinity.
  • 'floor': Round towards negative infinity.
  • 'expand': Round away from zero.
  • 'trunc': Round towards zero.
  • 'halfCeil': Values above or equal to the half-increment round like ceil, otherwise like floor.
  • 'halfFloor': Values above the half-increment round like ceil, otherwise like floor.
  • 'halfExpand': Values above or equal to the half-increment round like expand, otherwise like trunc.
  • 'halfTrunc': Values above the half-increment round like expand, otherwise like trunc.
  • 'halfEven': Like halfExpand, except that on the half-increment values round towards the nearest even digit.
  • 'halfOdd': Like halfExpand, except that on the half-increment values round towards the nearest odd digit.

Generated using TypeDoc