Fix when number's factor is negative

It must use the absolute value of factor to compute the digit shift using the
logarithm.

issue4031
review11361002
Change range operator of search widget to be included

issue3997
review11311003