fix static method

double fix(
  1. double x, [
  2. double? n
])

Clamp x between n (3) and 10

Implementation

static double fix(double x,[double?  n]) {
  return x.clamp(n ?? 3, 10).toDouble();// x.toStringAsFixed(n || 3, 10);
}