MCPcopy Index your code
hub / github.com/processing/processing / nfp

Method nfp

core/src/processing/core/PApplet.java:10071–10073  ·  view source on GitHub ↗

( begin auto-generated from nfp.xml ) Utility function for formatting numbers into strings. Similar to nf() but puts a "+" in front of positive numbers and a "-" in front of negative numbers. There are two versions, one for formatting floats and one for formatting ints. The values for the <b

(int num, int digits)

Source from the content-addressed store, hash-verified

10069 * @see PApplet#nfc(float, int)
10070 */
10071 static public String nfp(int num, int digits) {
10072 return (num < 0) ? nf(num, digits) : ('+' + nf(num, digits));
10073 }
10074 /**
10075 * @param nums the numbers to format
10076 */

Callers

nothing calls this directly

Calls 1

nfMethod · 0.95

Tested by

no test coverage detected