ripple-lib-value
Version:
Classes for dealing with XRP Ledger amount values
25 lines • 845 B
TypeScript
import BigNumber from 'bignumber.js';
declare class Value {
_value: BigNumber;
constructor(value: string | BigNumber);
static getBNRoundDown(): 1;
abs(): void;
add(addend: Value): void;
subtract(subtrahend: Value): void;
multiply(multiplicand: Value): void;
divide(divisor: Value): void;
invert(): void;
round(decimalPlaces: number, roundingMode: BigNumber.RoundingMode): void;
toFixed(decimalPlaces: number, roundingMode: BigNumber.RoundingMode): string;
getExponent(): number;
isNaN(): boolean;
isZero(): boolean;
isNegative(): boolean;
toString(): string;
greaterThan(comparator: Value): boolean;
lessThan(comparator: Value): boolean;
comparedTo(comparator: Value): number;
_canonicalize(value: any): void;
}
export { Value };
//# sourceMappingURL=value.d.ts.map