int floor( )

Returns the greatest integer no greater than this.

If this is not finite (NaN or infinity), throws an UnsupportedError.

Source

/**
 * Returns the greatest integer no greater than `this`.
 *
 * If `this` is not finite (`NaN` or infinity), throws an [UnsupportedError].
 */
int floor();