floorTo method

int floorTo(
  1. int decimals
)

Floors this integer to the nearest value.

Implementation

int floorTo(int decimals) => decimals <= 0 ? this : this;