double round({int digit = 1}) { if (isNaN) { return 0; } num mod = pow(10.0, digit); return ((this * mod).round().toDouble() / mod); }