Signature
native num_to_word(num, output[], len);
Description
Converts an integer to a text string.
Notes
-
The conversion algorithm is limited to a certain range of numbers, but
is guaranteed to work correctly for all numbers from 0 to 999. Outside
of that range, the conversion will result in an incorrect string, but
will not fail.
- The conversion is to english text, there is no way to change this.
Parameters
- num — Integer to convert
- output — Buffer to copy string to
- len — Maximum buffer size
Returns
Number of cells written to buffer