Skip to content

Commit

Permalink
Fix large num formatting for doubles
Browse files Browse the repository at this point in the history
  • Loading branch information
Rexios80 committed Dec 22, 2024
1 parent 1f35d27 commit 2d13caa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pub_stats_core/lib/src/util/format_utils.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
String formatLargeNum(num? number) {
if (number == null) return 'null';
if (number < 1000) return number.toString();
if (number < 1000) return number.toInt().toString();

const suffixes = ['K', 'M', 'B', 'T'];
var suffixIndex = -1;
Expand Down

0 comments on commit 2d13caa

Please sign in to comment.