Rounds toward negative infinity.
1.9 → 1, -1.1 → -2
static double floor(double value, {int precision = 2}) { final factor = math.pow(10, precision); return (value * factor).floorToDouble() / factor; }