Skip to main content
Module

x/math/big/mod.ts>RoundingMode

Deno module for high-precision calculations and scientific computing
Latest
enum RoundingMode
import { RoundingMode } from "https://deno.land/x/math@v1.1.0/big/mod.ts";

Members

RoundDown = 0

Rounds towards zero. I.e. truncate, no rounding.

RoundHalfEven = 2

Rounds towards nearest neighbour. If equidistant, rounds towards even neighbour.

RoundHalfUp = 1

Rounds towards nearest neighbour. If equidistant, rounds away from zero.

RoundUp = 3

Rounds away from zero.