/** * Return the integral and fractional parts of the given number. Both parts * have the same sign as the input. * * If `literal` is set to `true` the fractional part is reinterpreted by reading * the decimals in the base 10 string representation of `x` (safe if `x` is a * number literal or if its value is deterministic, and if its representation * matches exactly the value to be used). * * @param x - The input number. * @param literal - Whether to read `x` as a base 10 literal (default: `false`). * @returns A tuple `[ipart, fpart]`, respectively the integral and fractional * parts of `x`, or `[NaN, NaN]` if `x` is not a finite number. */ export declare function modf(x: number, literal?: boolean): [number, number]; /** * Return the integral part of the given number. * * @param x - The input number. * @returns The integer part of `x`. */ export declare const ipart: (x: number) => number; /** * Return the fractional part of the given number. * * @param x - The input number. * @param literal - Whether to read `x` as a base 10 literal (default: `false`). * @returns The fractional part of `x`. * @see {@link modf} for further information. */ export declare const fpart: (x: number, literal?: boolean) => number;