UNPKG

@fable-org/fable-library-js

Version:

Core library used by F# projects compiled with fable.io

21 lines (20 loc) 920 B
import { IComparable } from "./Util.js"; export declare const symbol: unique symbol; export interface CustomNumeric extends IComparable<Numeric> { [symbol](): { multiply(y: Numeric): Numeric; toPrecision(sd?: number): string; toExponential(dp?: number): string; toFixed(dp?: number): string; toHex(): string; }; } export type Numeric = number | bigint | CustomNumeric; export declare function isNumeric(x: any): any; export declare function isIntegral(x: Numeric): boolean; export declare function compare(x: Numeric, y: number): number; export declare function multiply(x: Numeric, y: number): Numeric; export declare function toFixed(x: Numeric, dp?: number): string; export declare function toPrecision(x: Numeric, sd?: number): string; export declare function toExponential(x: Numeric, dp?: number): string | bigint; export declare function toHex(x: Numeric): string;