Go Down

Topic: What is 1e6f in this code? (float) elapsedTime / 1e6f; (Read 1 time) 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
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy