gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-wallet-core] branch master updated: remove fromFloat


From: gnunet
Subject: [taler-wallet-core] branch master updated: remove fromFloat
Date: Fri, 04 Jun 2021 15:42:21 +0200

This is an automated email from the git hooks/post-receive script.

sebasjm pushed a commit to branch master
in repository wallet-core.

The following commit(s) were added to refs/heads/master by this push:
     new ea65d04f remove fromFloat
ea65d04f is described below

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

    remove fromFloat
---
 packages/taler-util/src/amounts.ts | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/packages/taler-util/src/amounts.ts 
b/packages/taler-util/src/amounts.ts
index 931bc1dd..e472de50 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) {

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]