Quote:
|
Originally Posted by gwross
You're going to want to be sure leading zeroes are printed for the fractional part. Does this printf implementation support "%03d"?
|
That's very true. I neglected that.
We should verify that the leading zeros can be forced. I'll call one of my kids later to test it on the controller at school to be sure.
[edit] That is supported (and has been tested), so the corrected printf would read:
Code:
printf("f = %d.%03d \r", i, i2);
Thanks Greg.