Tag Info

New answers tagged


int limit = 0.333; is the same as int limit = 0; because int has no decimal places. So you ether work in fixed point where the number is divided by a fixed amount, or floating point. so for example if doing fixed point hundredths, you would use, const int FIXED = 100; unsigned long Timer::getElapsed() { if (! running) { start = ...

Top 50 recent answers are included