floor method

int floor(
  1. double f
)

Implementation

int floor(double f) => f >= 0 ? f.toInt() : (f.toInt() - 1);