UNPKG

@holgerengels/compute-engine

Version:

Symbolic computing and numeric evaluations for JavaScript and Node.js

8 lines (7 loc) 507 B
/* 0.26.0-alpha2 */ import Decimal from 'decimal.js'; import type { Rational } from '../numerics/rationals'; import type { BoxedExpression } from './public'; 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;