5 int main(int argc, char **argv) {
6 if (argc != 2) xperror("invocation: round <target>", 0);
7 double target = strtod(argv[1], NULL);
8 bool intmode = (target == floor(target));
10 while (fgets(line, sizeof(line), stdin)) {
11 trim_end(line, "\r\n \t");
13 double n = strtod(line, NULL);
14 double quot = n / target;
18 printf("%lld\n", (long long)n);