Skip to content

Commit c19e931

Browse files
authored
feat: add tn (#942)
1 parent ba90af4 commit c19e931

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

bathbot/src/active/impls/ranking.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,10 +453,14 @@ impl Display for AmountWithNegative<'_> {
453453
fn fmt(&self, f: &mut Formatter<'_>) -> FmtResult {
454454
if self.inner.abs() < 1_000_000_000 {
455455
Display::fmt(&WithComma::new(*self.inner), f)
456-
} else {
456+
} else if self.inner.abs() < 1_000_000_000_000 {
457457
let score = (self.inner / 10_000_000) as f32 / 100.0;
458458

459459
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")
460464
}
461465
}
462466
}

0 commit comments

Comments
 (0)