Go Down

Topic: What is 1e6f in this code? (float) elapsedTime / 1e6f; (Read 946 times) previous topic - next topic

Glennphillips

Im not getting any time readings from this piece of code and i dont know what 1e6f is referring to...


float EstimateAngle() {

    currTimeStamp = micros();

    elapsedTime = currTimeStamp - prevTimeStamp;

    prevTimeStamp = currTimeStamp;



    elapsedTimeSec = (float) elapsedTime / 1e6f;


thanks!!

AWOL

One million.
1.0 x 106

Please post all the code, using code tags
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Glennphillips


Go Up