@augment-vir/common
Version:
A collection of augments, helpers types, functions, and classes for any JavaScript environment.
19 lines (18 loc) • 568 B
TypeScript
/**
* Determines if the given number is so large that it requires scientific notation (`e`) when
* represented as a string.
*
* @category Number
* @category Package : @augment-vir/common
* @example
*
* ```ts
* import {requiresScientificNotation} from '@augment-vir/common';
*
* requiresScientificNotation(5); // false
* requiresScientificNotation(999999999999999999999); // true
* ```
*
* @package [`@augment-vir/common`](https://www.npmjs.com/package/@augment-vir/common)
*/
export declare function requiresScientificNotation(input: number): boolean;