ilp-protocol-stream
Version:
Interledger Transport Protocol for sending multiple streams of money and data over ILP.
21 lines (20 loc) • 699 B
TypeScript
import Long from 'long';
export default class Rational {
static UZERO: Rational;
private a;
private b;
unsigned: boolean;
constructor(numer: Long, denom: Long, unsigned: boolean);
static isRational(value: unknown): value is Rational;
static fromNumbers(numer: number, denom: number, unsigned: boolean): Rational;
static fromNumber(value: number, unsigned: boolean): Rational;
multiplyByLong(value: Long): Long;
multiplyByLongCeil(value: Long): Long;
multiplyByRational(other: Rational): Rational;
greaterThanOne(): boolean;
complement(): Rational;
reciprocal(): Rational;
toNumber(): number;
toString(): string;
private toFixed;
}