diff options
author | Sebastian <sebasjm@gmail.com> | 2021-06-04 10:42:01 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2021-06-04 10:42:12 -0300 |
commit | ea65d04f0c435eb2a82108a22c90006fd947a772 (patch) | |
tree | 97d5cbd3a640f7cb00311956b7b4aa497782a71e /packages/taler-util | |
parent | aa0edbdd6875113976ec2b27efe2d82625ed2fde (diff) |
remove fromFloat
Diffstat (limited to 'packages/taler-util')
-rw-r--r-- | packages/taler-util/src/amounts.ts | 7 |
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) { |