@dalet-oss/lexorank
Version:
A reference implementation of a list ordering system like JIRA's Lexorank algorithm
25 lines (24 loc) • 923 B
TypeScript
import { LexoInteger } from './lexoInteger';
import { ILexoNumeralSystem } from '../numeralSystems';
export declare class LexoDecimal {
static half(sys: ILexoNumeralSystem): LexoDecimal;
static parse(str: string, system: ILexoNumeralSystem): LexoDecimal;
static from(integer: LexoInteger): LexoDecimal;
static make(integer: LexoInteger, sig: number): LexoDecimal;
private readonly mag;
private readonly sig;
private constructor();
getSystem(): ILexoNumeralSystem;
add(other: LexoDecimal): LexoDecimal;
subtract(other: LexoDecimal): LexoDecimal;
multiply(other: LexoDecimal): LexoDecimal;
floor(): LexoInteger;
ceil(): LexoInteger;
isExact(): boolean;
getScale(): number;
setScale(nsig: number, ceiling?: boolean): LexoDecimal;
compareTo(other: LexoDecimal): number;
format(): string;
equals(other: LexoDecimal): boolean;
toString(): string;
}