Skip to content

Commit

Permalink
Fix money decimal pointing
Browse files Browse the repository at this point in the history
  • Loading branch information
stdcall0 committed Apr 16, 2024
1 parent 490a341 commit 0e57e28
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/cs_casesim.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,9 @@ export class CSCaseSimPlugin extends Plugin {
const count = s.countByRarity[rarity];
msg += `- ${this.getRarityEmojiSquare(rarity as CS.Rarity)}${rarity}: ${count}\n`;
}
msg += `\n开箱费用: ¥${s.totalCase * c.price}`;
msg += `\n总估值: ¥${s.totalValue}`;
msg += `\n盈亏: ¥${s.totalValue - s.totalCase * c.price}`;
msg += `\n开箱费用: ¥${(s.totalCase * c.price).toFixed(2)}`;
msg += `\n总估值: ¥${s.totalValue.toFixed(2)}`;
msg += `\n盈亏: ¥${(s.totalValue - s.totalCase * c.price).toFixed(2)}`;

await this.reply(msg, true);
}
Expand Down

0 comments on commit 0e57e28

Please sign in to comment.