Lines Matching refs:last
90 double last = 0.0;
147 last = e_atof(argv[argc - 1]);
156 errx(1, "zero %screment", (first < last) ? "in" : "de");
161 incr = (first < last) ? 1.0 : -1.0;
163 if (incr <= 0.0 && first < last)
166 if (incr >= 0.0 && first > last)
177 fmt = generate_format(first, incr, last, equalize, pad);
179 for (step = 1, cur = first; incr > 0 ? cur <= last : cur >= last;
188 * Did we miss the last value of the range in the loop above?
190 * We might have, so check if the printable version of the last
191 * computed value ('cur') and desired 'last' value are equal. If
194 * due to a rounding error and we still need to print 'last'.
197 asprintf(&last_print, fmt, last) == -1 ||
368 generate_format(double first, double incr, double last, int equalize, char pad)
377 /* figure out "last" value printed */
378 if (first > last)
379 last = first - incr * floor((first - last) / incr);
381 last = first + incr * floor((last - first) / incr);
396 width2 = snprintf(buf, sizeof(buf), "%g", last);
419 "usage: %s [-w] [-f format] [-s string] [first [incr]] last\n",