solved bug in detecting the number of decimals reported