I want to compute 10 raised to the power minus m
. In addition to use the math function pow(10, -m)
, is there any fast and efficient way to do that?
What I ask such a simple question to the c++ gurus from SO is that, as you know, just like base 2, 10 is also a special base. If some value n
times the 10's power minus m
, it is equivalent to move n's decimal point to the left m times. I think it must be a fast and efficient way to cope with.