Performance enchancement for floatToDigits