Skip to content

Commit 0905e25

Browse files
committed
documentation changed
1 parent 972b465 commit 0905e25

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/utilities/string_functions.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,9 @@ p5.prototype.matchAll = function(str, reg) {
222222
* then unused decimal places will be set to 0. For example, calling
223223
* `nf(123.45, 4, 3)` returns the string `'0123.450'`.
224224
*
225+
* When the number is negative, for example, calling `nf(-123.45, 5, 2)`
226+
* returns the string `'-00123.45'`.
227+
*
225228
* @method nf
226229
* @param {Number|String} num number to format.
227230
* @param {Integer|String} [left] number of digits to include to the left of

0 commit comments

Comments
 (0)