This commit fixes issue #366
Created by: Scorpiokat
displayPrecision used to be a constant which did not depend on a Tick value. Now it is being calculated based on the number of figures in the integer part + 1 of a Tick Value which is enough for large g-formatted numbers.