Processing 1.2.1
I have not used nf() before but this seems like it should work:
What is strange is that this works:
Am I misunderstanding nf() or is this a bug?
I have not used nf() before but this seems like it should work:
- String frame1;
- int mill1 = 2;
- if(mill1 < 10) {
- frame1 = nf(mill1, 2);
- }
- println(frame1);
What is strange is that this works:
- String frame1;
- int mill1 = 2;
- if(mill1 < 10) {
- frame1 = nf(mill1, 2);
- } else {
- frame1 = Integer.toString(mill1);
- }
Am I misunderstanding nf() or is this a bug?
1
