calc a specified digit of fractional part of float values