Options
All
  • Public
  • Public/Protected
  • All
Menu

An operation that can be performed on a single number.

Index

Enumeration members

Enumeration members

CEIL

CEIL:

The number is rounded up to the nearest whole number.

DOWN

DOWN:

The number is rounded down when positive and up when negative. This is effectively floor the absolute value where the result preserves the sign.

FLOOR

FLOOR:

The number is rounded down to the nearest whole number.

NONE

NONE:

The number is returned unmodified.

ROUND

ROUND:

The number is rounded up or down depending on if the fractional value is greater than or less than 0.5 respectively.

TRUNCATE

TRUNCATE:

The fractional part of the number is dropped.

UP

UP:

The number is rounded up when positive and down when negative. This is effectively ceiling the absolute value where the result preserves the sign.

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc