diff options
author | Florian Dold <florian.dold@gmail.com> | 2018-07-05 00:21:11 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2018-07-05 00:21:23 +0200 |
commit | a4edc3b17f27de5866e11d04a1fc9bbd4d657867 (patch) | |
tree | db4764ad5856ba5852e22765637c7d1c32976eca /src/amounts.ts | |
parent | e9d280eaea376d80bb6fd9895b9f19c6ad264b4c (diff) | |
download | wallet-core-a4edc3b17f27de5866e11d04a1fc9bbd4d657867.tar.xz |
remove wrong toFloat function
Amounts should never be converted to floats, the one use of the function was bogus.
Diffstat (limited to 'src/amounts.ts')
-rw-r--r-- | src/amounts.ts | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/amounts.ts b/src/amounts.ts index 280cd636c..1aefe07e1 100644 --- a/src/amounts.ts +++ b/src/amounts.ts @@ -265,14 +265,6 @@ export function parseOrThrow(s: string): AmountJson { /** - * Convert the amount to a float. - */ -export function toFloat(a: AmountJson): number { - return a.value + (a.fraction / fractionalBase); -} - - -/** * Convert a float to a Taler amount. * Loss of precision possible. */ |