aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-util
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2021-06-04 10:42:01 -0300
committerSebastian <sebasjm@gmail.com>2021-06-04 10:42:12 -0300
commitea65d04f0c435eb2a82108a22c90006fd947a772 (patch)
tree97d5cbd3a640f7cb00311956b7b4aa497782a71e /packages/taler-util
parentaa0edbdd6875113976ec2b27efe2d82625ed2fde (diff)
remove fromFloat
Diffstat (limited to 'packages/taler-util')
-rw-r--r--packages/taler-util/src/amounts.ts7
1 files changed, 0 insertions, 7 deletions
diff --git a/packages/taler-util/src/amounts.ts b/packages/taler-util/src/amounts.ts
index 931bc1dda..e472de503 100644
--- a/packages/taler-util/src/amounts.ts
+++ b/packages/taler-util/src/amounts.ts
@@ -331,13 +331,6 @@ export class Amounts {
};
}
- /**
- * Convert a Taler amount to a float
- */
- static toFloat(amount: AmountJson): number {
- return amount.value + (amount.fraction / amountFractionalBase)
- }
-
static min(a: AmountLike, b: AmountLike): AmountJson {
const cr = Amounts.cmp(a, b);
if (cr >= 0) {