remove fromFloat
This commit is contained in:
parent
aa0edbdd68
commit
ea65d04f0c
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user