Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "math/base/special/floorf/docs/types/index.d"

Index

Functions

Functions

Export assignment floorf

  • floorf(x: number): number
  • Rounds a single-precision floating-point number toward negative infinity.

    Parameters

    • x: number

      input value

    Returns number

    rounded value

    Example

    var v = floorf( -4.2 );
    // returns -5.0

    Example

    var v = floorf( 9.99999 );
    // returns 9.0

    Example

    var v = floorf( 0.0 );
    // returns 0.0

    Example

    var v = floorf( NaN );
    // returns NaN