Home Reference Source
import {RoundingModeEntity} from 'konpeito/src/math/core/context/RoundingMode.js'
public class | source

RoundingModeEntity

Direct Subclass:

src/math/core/context/RoundingMode.js~RoundingMode_CEILING, src/math/core/context/RoundingMode.js~RoundingMode_DOWN, src/math/core/context/RoundingMode.js~RoundingMode_FLOOR, src/math/core/context/RoundingMode.js~RoundingMode_HALF_DOWN, src/math/core/context/RoundingMode.js~RoundingMode_HALF_EVEN, src/math/core/context/RoundingMode.js~RoundingMode_HALF_UP, src/math/core/context/RoundingMode.js~RoundingMode_UNNECESSARY, src/math/core/context/RoundingMode.js~RoundingMode_UP

Direct Implemented:

  • src/math/core/context/RoundingMode.js~RoundingMode_CEILING
  • ,
  • src/math/core/context/RoundingMode.js~RoundingMode_DOWN
  • ,
  • src/math/core/context/RoundingMode.js~RoundingMode_FLOOR
  • ,
  • src/math/core/context/RoundingMode.js~RoundingMode_HALF_DOWN
  • ,
  • src/math/core/context/RoundingMode.js~RoundingMode_HALF_EVEN
  • ,
  • src/math/core/context/RoundingMode.js~RoundingMode_HALF_UP
  • ,
  • src/math/core/context/RoundingMode.js~RoundingMode_UNNECESSARY
  • ,
  • src/math/core/context/RoundingMode.js~RoundingMode_UP

Base class for rounding mode for BigDecimal.

Static Method Summary

Static Public Methods
public static

Numeric value to add.

public static

Get rounding mode name in upper case English.

Static Public Methods

public static getAddNumber(x: number): number source

Numeric value to add. It is rounded when this value is added.

Params:

NameTypeAttributeDescription
x number

Rounding value. When specified as an integer, the first digit is rounded.

Return:

number

Numeric value to add.

public static toString(): string source

Get rounding mode name in upper case English.

Return:

string

Rounding method name.