printf issue...
Posted: Mon May 04, 2020 11:35 am
Why does i=12;Serial.printf("d=%d\n", i / 10); print out "d=1"
and i=12; Serial.printf("f=%f d=%d\n", i / 10, i / 10); prints out "f=0.000000 d=1073421916", I understand why the %f is not working but why is the %d now affected?? I would still expect d=1 or to the point "f=0.000000 d=1"
RichardS
and i=12; Serial.printf("f=%f d=%d\n", i / 10, i / 10); prints out "f=0.000000 d=1073421916", I understand why the %f is not working but why is the %d now affected?? I would still expect d=1 or to the point "f=0.000000 d=1"
RichardS