mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-01 03:53:33 +00:00
1c387727fe
You can now easily print numbers that have 80 bits of precision. This change also imports many of the test vectors from the gdtoa codebase.
18 lines
1,019 B
C
18 lines
1,019 B
C
#if 0
|
|
/*─────────────────────────────────────────────────────────────────╗
|
|
│ To the extent possible under law, Justine Tunney has waived │
|
|
│ all copyright and related or neighboring rights to this file, │
|
|
│ as it is written in the following disclaimers: │
|
|
│ • http://unlicense.org/ │
|
|
│ • http://creativecommons.org/publicdomain/zero/1.0/ │
|
|
╚─────────────────────────────────────────────────────────────────*/
|
|
#endif
|
|
#include "libc/math.h"
|
|
#include "libc/stdio/stdio.h"
|
|
|
|
int main(int argc, char *argv[]) {
|
|
volatile long double x = -.5;
|
|
volatile long double y = 1.5;
|
|
printf("atan2l(%.19Lg, %.19Lg) is %.19Lg\n", x, y, atan2l(x, y));
|
|
return 0;
|
|
}
|