remove fromFloat

This commit is contained in:
Sebastian 2021-06-04 10:42:01 -03:00
parent aa0edbdd68
commit ea65d04f0c
No known key found for this signature in database
GPG Key ID: BE4FF68352439FC1

View File

@ -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) {