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)
| 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 | /** |