/** * @file * Math and floating point utilities. */ /** * A strict version of `parseFloat` that requires the entire input string to be valid decimal * or scientific format. * * @param {String} string * @returns {(Number|NaN)} * @public */ export declare function strictParseFloat(string: string): number; /** * * Rounds a number to a specific exponent of base 10. * * Examples: * * `value` 125.678 and `exp` -2 rounds to 125.68 * * `value` 125.678 and `exp` -1 rounds to 125.7 * * `value` 125.678 and `exp` 0 rounds to 126 * * `value` 125.678 and `exp` 1 rounds to 130 * * `value` 125.678 and `exp` 2 rounds to 100 * * @param {Number} value * @param {Number} [exp=0] Exponent of base 10 of the decimal place to round to. * @returns {(Number|NaN)} The rounded number or NaN if `value` is not a Number or `exp` isn't * an integer. * @public */ export declare function roundToDecimal(value: number, exp?: number): number; /** * Returns the nearest whole power of ten less or equal to the given number. * * Examples: * * 10 returns 10 * * 11 returns 10 * * 99 returns 10 * * 100 returns 100 * * @param {Number} number * @returns {(Number|NaN)} The result if `number` is positive, `0` if `number` is `0`, `NaN` if * `number` is negative. * @public */ export declare function floorPowerOfTen(number: number): number; /** * Determines if the given number is less than the minimum safe integer (-9007199254740991). * @param {Number} number * @return {Boolean} `true` if the given number is less than the minimum safe integer, `false` * otherwise (or if `number` isn't a Number). * @public */ export declare function isLessThanMinSafeInt(number: number): boolean; /** * Determines if the given number is greater than the maximum safe integer (9007199254740991). * @param {Number} number * @return {Boolean} `true` if the given number is greater than the maximum safe integer, `false` * otherwise (or if `number` isn't a Number). * @public */ export declare function isGreaterThanMaxSafeInt(number: number): boolean;