import { Notation } from './types.gen'; /** * Converts a number to a string representation with a specified precision and notation. * * @param value - The number to be converted. * @param precision - The number of decimal places to include in the output. Must be between 0 and 20. * @param notation - The notation to use for the conversion. Can be "standard", "scientific", or "engineering". * @returns The string representation of the number. * * Edge cases: * - If the value is `NaN`, returns "NaN". * - If the value is `Infinity`, returns "∞". * - If the value is `-Infinity`, returns "-∞". * - Scientific and engineering output is renormalized after rounding so the mantissa * stays in its canonical range (|m| < 10 for scientific, |m| < 1000 for engineering). * For example, 9.999 at precision 1 in scientific renders as "1.0ᴇ1", not "10.0ᴇ0". * * Examples: * * ```typescript * stringifyNumber(1234.5678, 2, "standard"); // "1234.57" * stringifyNumber(1234.5678, 2, "scientific"); // "1.23ᴇ3" * stringifyNumber(1234.5678, 2, "engineering"); // "1.23ᴇ3" * stringifyNumber(0.0001234, 4, "standard"); // "0.0001" * stringifyNumber(0.0001234, 4, "scientific"); // "1.2340ᴇ-4" * stringifyNumber(0.0001234, 4, "engineering"); // "123.4000ᴇ-6" * stringifyNumber(NaN, 2, "standard"); // "NaN" * stringifyNumber(Infinity, 2, "standard"); // "∞" * stringifyNumber(-Infinity, 2, "standard"); // "-∞" * ``` */ export declare const stringifyNumber: (value: number | bigint, precision: number, notation: Notation) => string; //# sourceMappingURL=notation.d.ts.map