For a while, I\'ve been representing large powers of 10 in constants using scientific notation, just so I don\'t have to count the zeros. e.g.
#define DELAY_USE
You ask specifically about powers of ten. 1e6
will be exactly one million. You can go up to 1e22
without anything bad happening. However, note that in both C++ and C, 1e6
is a double
constant, rather than an integer constant.
Negative powers of ten are a different story. 1e-1
is inexact, as are all lower powers.