From 15176f919f5a32aa5e8c842437c31ee860fe17d0 Mon Sep 17 00:00:00 2001 From: Nic Wortel Date: Thu, 1 Aug 2024 15:35:37 +0200 Subject: [PATCH] Render percentages with maximum 4 digits --- src/Pricing/PercentageFee.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Pricing/PercentageFee.ts b/src/Pricing/PercentageFee.ts index 2913020..303791b 100644 --- a/src/Pricing/PercentageFee.ts +++ b/src/Pricing/PercentageFee.ts @@ -13,7 +13,7 @@ export class PercentageFee implements Fee { public describe(): string { const numberFormatter = new NumberFormatter(); - return numberFormatter.formatPercentage(this.percentage / 100, 3); + return numberFormatter.formatPercentage(this.percentage / 100, 4); } public getExtendedDescription(): string[] {