fix ulp check in sincosf
[libc-test.git] / src / math / gen / tog.c
blobec0f687155c64bd758d44cbf73a4c7a91523ba53
1 #include <stdio.h>
2 #include <stdlib.h>
3 #include <errno.h>
5 int main(int argc, char *argv[])
7 int i;
8 float f;
9 double d;
10 long double ld;
11 char *eptr;
13 for (i = 1; i < argc; i++) {
14 errno = 0;
15 f = strtof(argv[i], &eptr);
16 printf("%.42g (*eptr:%d errno:%d)\n", f, *eptr, errno);
17 errno = 0;
18 d = strtod(argv[i], &eptr);
19 printf("%.42g (*eptr:%d errno:%d)\n", d, *eptr, errno);
20 errno = 0;
21 ld = strtold(argv[i], &eptr);
22 printf("%.42Lg (*eptr:%d errno:%d)\n", ld, *eptr, errno);
24 return 0;