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