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

Method nfs

core/src/processing/core/PApplet.java:10032–10034  ·  view source on GitHub ↗

( begin auto-generated from nfs.xml ) Utility function for formatting numbers into strings. Similar to nf() but leaves a blank space in front of positive numbers so they align with negative numbers in spite of the minus symbol. There are two versions, one for formatting floats and one for fo

(int num, int digits)

Source from the content-addressed store, hash-verified

10030 * @see PApplet#nfc(float, int)
10031 */
10032 static public String nfs(int num, int digits) {
10033 return (num < 0) ? nf(num, digits) : (' ' + nf(num, digits));
10034 }
10035
10036 /**
10037 * @param nums the numbers to format

Callers 3

textMethod · 0.95
printMethod · 0.95
printMethod · 0.95

Calls 1

nfMethod · 0.95

Tested by

no test coverage detected