Home Reference Source
import {RoundingModeEntity} from 'konpeito/src/math/context/RoundingMode.mjs'
public interface | source

RoundingModeEntity

Direct Subclass:

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

Direct Implemented:

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

BigDecimal用の丸めモードの基底クラス

Static Method Summary

Static Public Methods
public static

getAddNumber(x: number): number

丸めに必要な加算値

public static

toString(): string

丸めモードの名前を英語の大文字で取得する

Static Public Methods

public static getAddNumber(x: number): number source

丸めに必要な加算値

Params:

NameTypeAttributeDescription
x number

1ケタ目の値

Return:

number

いくつ足すと丸められるか

public static toString(): string source

丸めモードの名前を英語の大文字で取得する

Return:

string

丸めモード名