diff --git a/lib/src/prefix.dart b/lib/src/prefix.dart index 831bf3e..0750f6b 100644 --- a/lib/src/prefix.dart +++ b/lib/src/prefix.dart @@ -20,6 +20,7 @@ enum Prefix { final List prefixes; String format(int value, {int precision = 2}) { + assert(value >= 0); assert(precision >= 0); var size = value.toDouble();