Home Reference Source
public class | source

RoundingMode

Rounding mode class for BigDecimal.

Static Member Summary

Static Public Members
public static get

CEILING: typeof RoundingModeEntity: *

Directed rounding to an integer.

public static get

DOWN: typeof RoundingModeEntity: *

Directed rounding to an integer.

public static get

FLOOR: typeof RoundingModeEntity: *

Directed rounding to an integer.

public static get

HALF_DOWN: typeof RoundingModeEntity: *

Rounding to the nearest integer.

public static get

HALF_EVEN: typeof RoundingModeEntity: *

Rounding to the nearest integer Round to the nearest side.

public static get

HALF_UP: typeof RoundingModeEntity: *

Rounding to the nearest integer.

public static get

UNNECESSARY: typeof RoundingModeEntity: *

Do not round.

public static get

UP: typeof RoundingModeEntity: *

Directed rounding to an integer.

Static Method Summary

Static Public Methods
public static

valueOf(name: string | RoundingModeEntity | Object): typeof RoundingModeEntity

Get rounding class represented by specified string.

Static Public Members

public static get CEILING: typeof RoundingModeEntity: * source

Directed rounding to an integer. Round up to positive infinity.

Return:

typeof RoundingModeEntity

public static get DOWN: typeof RoundingModeEntity: * source

Directed rounding to an integer. Round towards 0.

Return:

typeof RoundingModeEntity

public static get FLOOR: typeof RoundingModeEntity: * source

Directed rounding to an integer. Round down to negative infinity.

Return:

typeof RoundingModeEntity

public static get HALF_DOWN: typeof RoundingModeEntity: * source

Rounding to the nearest integer. Round half towards negative infinity.

Return:

typeof RoundingModeEntity

public static get HALF_EVEN: typeof RoundingModeEntity: * source

Rounding to the nearest integer Round to the nearest side. If the median, round to the even side.

Return:

typeof RoundingModeEntity

public static get HALF_UP: typeof RoundingModeEntity: * source

Rounding to the nearest integer. Round half towards positive infinity.

Return:

typeof RoundingModeEntity

public static get UNNECESSARY: typeof RoundingModeEntity: * source

Do not round. Error if you need to round it.

Return:

typeof RoundingModeEntity

public static get UP: typeof RoundingModeEntity: * source

Directed rounding to an integer. Round towards positive infinity if positive, negative infinity if negative.

Return:

typeof RoundingModeEntity

Static Public Methods

public static valueOf(name: string | RoundingModeEntity | Object): typeof RoundingModeEntity source

Get rounding class represented by specified string.

Params:

NameTypeAttributeDescription
name string | RoundingModeEntity | Object

Mode name.

Return:

typeof RoundingModeEntity