Go Down

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


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;



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.
I speak for myself, not Arduino.


Go Up