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

Thread: PKI Client 5.00 install (for eToken Pro)

ATmega2560-Arduino Pin Mapping

Crossfader Arduino Tutorial