@extra2001/compute-engine
Version:
Symbolic computing and numeric evaluations for JavaScript and Node.js
8 lines (7 loc) • 507 B
TypeScript
/* 0.28.0 */
import { Decimal } from 'decimal.js';
import type { Rational } from '../numerics/types';
import type { BoxedExpression } from '../global-types';
export declare function asRational(expr: BoxedExpression): Rational | undefined;
export declare function asBigint(expr: BoxedExpression | undefined): bigint | null;
export declare function asBignum(expr: BoxedExpression | undefined): Decimal | null;
export declare function asSmallInteger(expr: number | BoxedExpression | undefined): number | null;