NEXTPOWOF10 Next power of 10. P = NEXTPOWOF10(X) returns the smallest integer P such that 10^P >= abs(X). Essentially, NEXTPOWOF10(X) is the same as CEIL(LOG(ABS(X)) / LOG(10)), but special care is taken to catch round-off errors. See also PREVPOWOF2, NEXTPOW.