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