MCPcopy Index your code
hub / github.com/benfry/processing4 / nfp

Method nfp

core/src/processing/core/PApplet.java:9161–9163  ·  view source on GitHub ↗

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 digits , left , and right

(int num, int digits)

Source from the content-addressed store, hash-verified

9159 * @see PApplet#nfc(float, int)
9160 */
9161 static public String nfp(int num, int digits) {
9162 return (num < 0) ? nf(num, digits) : ('+' + nf(num, digits));
9163 }
9164
9165
9166 /**

Callers

nothing calls this directly

Calls 1

nfMethod · 0.95

Tested by

no test coverage detected