##### Ninja Library - Mathematical Function

# njRoundOff

Rounds down the decimal fraction

### FORMAT

`

  Float njRoundOff( n )
  Float n

`

### PARAMETER

  `n` | Arbitrary real number

### RETURN

  Integer resulting from rounding down

### DESCRIPTION

  Rounds down the decimal fraction of arbitrary real number n and returns the integer portion as the result.

### EXAMPLE

      y1 = njRoundOff( 2.8f );
      y2 = njRoundOff( -2.8f );
      % Result %
      y1 = 2.000000
      y2 = -2.000000

### REFERENCE

  `njCeil()
  njFloor()
  njRoundUp()
  `

njRoundOff

COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999