Skip to content

splitDigits

function

Splits a number into the digits of its mantissa and its decimal exponent, so that digit counting stays correct for values JavaScript renders in exponential notation (1e-7, 1e21).

function splitDigits(value: number): literal type;
NameTypeDescription
valuenumber

Returns: literal type