What is 1e6f in this code? (float) elapsedTime / 1e6f;


im not getting time readings piece of code , dont know 1e6f referring to...


float estimateangle() {

    currtimestamp = micros();

    elapsedtime = currtimestamp - prevtimestamp;

    prevtimestamp = currtimestamp;



    elapsedtimesec = (float) elapsedtime / 1e6f;


thanks!!

one million.
1.0 x 106

please post code, using code tags


Arduino Forum > Using Arduino > Programming Questions > What is 1e6f in this code? (float) elapsedTime / 1e6f;


arduino

Comments

Popular posts from this blog

Qualcuno mi sa dire perchè non va questo protocollo seriale ?

Prezzemolo!

play video