Skip to main content

numberToWord

Stentor API Reference


Stentor API Reference / stentor-utils/src / numberToWord

Function: numberToWord()

numberToWord(num): string

Defined in: packages/stentor-utils/src/number.ts:142

Converts number to their word (en) equivalent. For example, 1 is converted to one and 55 if converted to fifty-five

Parameters​

num​

number

Number to convert to it's word equivalent

Returns​

string

The word representation of the number provided such as "one" or "fifty-five"