Convert a number to a string using printf-style formatting.

this: numberNumber

The number to convert to a string.

patternString, default: "%s"

A printf-style format string. For example, '%.2f' produces numbers formatted like '3.14', and '%05d' produces numbers formatted like '00042'. The format string must satisfy the following criteria:

1. Zero or more prefix characters.

2. Exactly one '%'.

3. Zero or more modifier characters in the set [#-+ 0,(.\d].

4. Exactly one conversion character in the set [sdoxXeEfgGaA].

5. Zero or more suffix characters.


For more about format strings, see