Skip to content

happypdf / numberToString

Function: numberToString()

ts
function numberToString(num): string;

Defined in: src/utils/numbers.ts:9

Converts a number to its string representation in decimal. This function differs from simply converting a number to a string with .toString() because this function's output string will not contain exponential notation.

Credit: https://stackoverflow.com/a/46545519

Parameters

ParameterType
numnumber

Returns

string

MIT Licensed. A fork of pdf-lib.