taler-typescript-core

Wallet core logic and WebUIs for various components
Log | Files | Refs | Submodules | README | LICENSE

commit ea65d04f0c435eb2a82108a22c90006fd947a772
parent aa0edbdd6875113976ec2b27efe2d82625ed2fde
Author: Sebastian <sebasjm@gmail.com>
Date:   Fri,  4 Jun 2021 10:42:01 -0300

remove fromFloat

Diffstat:
Mpackages/taler-util/src/amounts.ts | 7-------
1 file changed, 0 insertions(+), 7 deletions(-)

diff --git 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) {