Utility function for formatting numbers into strings and placing appropriate commas to mark units of 1000. There are four versions: one for formatting ints, one for formatting an array of ints, one for formatting floats, and one for formatting an array of floats. The value for the ri
(int[] nums)
| 9081 | * @see PApplet#nfs(float, int, int) |
| 9082 | */ |
| 9083 | static public String[] nfc(int[] nums) { |
| 9084 | String[] formatted = new String[nums.length]; |
| 9085 | for (int i = 0; i < formatted.length; i++) { |
| 9086 | formatted[i] = nfc(nums[i]); |
| 9087 | } |
| 9088 | return formatted; |
| 9089 | } |
| 9090 | |
| 9091 | |
| 9092 | /** |
no test coverage detected