We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba90af4 commit c19e931Copy full SHA for c19e931
bathbot/src/active/impls/ranking.rs
@@ -453,10 +453,14 @@ impl Display for AmountWithNegative<'_> {
453
fn fmt(&self, f: &mut Formatter<'_>) -> FmtResult {
454
if self.inner.abs() < 1_000_000_000 {
455
Display::fmt(&WithComma::new(*self.inner), f)
456
- } else {
+ } else if self.inner.abs() < 1_000_000_000_000 {
457
let score = (self.inner / 10_000_000) as f32 / 100.0;
458
459
write!(f, "{score:.2} bn")
460
+ } else {
461
+ let score = (self.inner / 10_000_000_000) as f32 / 100.0;
462
+
463
+ write!(f, "{score:.2} tn")
464
}
465
466
0 commit comments