floor method

double floor(
  1. double x
)

Computes the largest integer value not greater than x.

Implementation

double floor(double x) => x.floorToDouble();