Basic math can tell you that:
floor(log10(N))
The base base of number 10 tells you about how many digits before the decimal point are in this number.
For example, 99987123459823754there is9.998E+016
log10(99987123459823754) 16.9999441, 16, : " - 16, 17".
, :
0.000000000003754 = 3.754E-012
log10(0.000000000003754) = -11.425
floor(log10(0.000000000003754)) = -12