matician - v2.0.0
    Preparing search index...

    Function floor

    • Rounds a number down to the nearest integer.

      Parameters

      • value: number

        The number to round down.

      Returns number

      The greatest integer less than or equal to the given number.

      floor(3.9);   // returns 3
      floor(-2.1); // returns -3