/** * Rounding mode for numeric operations. */ export declare enum RoundingMode { /** * Round towards zero. */ Down = 1, /** * Round away from zero. */ Up = 2, /** * Round towards the nearest neighbor, but if in the middle round away from zero. * * Examples: `0.1 => 0`, `0.5 => 1`, `0.6 => 1`, `-1.1 => 1`, `-1.5 => 2`, `-1.6 => `2` */ HalfUp = 3, /** * Round towards the nearest neighbor, but if in the middle round towards * the even neighbor. Also known as bankers rounding. * * Examples: `0.1 => 0`, `0.5 => 0`, `0.6 => 1`, `-1.1 => 1`, `-1.5 => 2`, `-1.6 => `2` */ HalfEven = 4, /** * Round towards the nearest neighbor, but if in the middle round towards zero. * * Examples: `0.1 => 0`, `0.5 => 0`, `0.6 => 1`, `-1.1 => 1`, `-1.5 => 1`, `-1.6 => `2` */ HalfDown = 5, /** * Round towards negative infinity. */ Floor = 6, /** * Round towards positive infinity. */ Ceiling = 7, /** * Do not round, operation should have an exact result. Using this mode * will result in errors being thrown if the result can not be exactly * represented without rounding. */ Unnecessary = 8 } //# sourceMappingURL=RoundingMode.d.ts.map