Function requiresScientificNotation

  • Determines if the given number is so large that it requires scientific notation (e) when represented as a string.

    Parameters

    • input: number

    Returns boolean

    import {requiresScientificNotation} from '@augment-vir/common';

    requiresScientificNotation(5); // false
    requiresScientificNotation(999999999999999999999); // true