Lines Matching full:shortest
108 shortest := prec < 0
109 if shortest {
119 // Precision for shortest representation mode.
151 return formatDigits(dst, shortest, neg, digs, prec, fmt)
160 shortest := prec < 0
161 if shortest {
164 // Precision for shortest representation mode.
188 return formatDigits(dst, shortest, neg, digs, prec, fmt)
191 func formatDigits(dst []byte, shortest bool, neg bool, digs decimalSlice, prec int, fmt byte) []byte {
205 // if precision was the shortest possible, use precision 6 for this decision.
206 if shortest {
226 // roundShortest rounds d (= mant * 2^exp) to the shortest number of digits
239 // We may see at once that the number is already shortest.
246 // So the number is already shortest if 10^(dp-nd) > 2^(exp-mantbits),
251 // The number is already shortest.