A2osX/ROOT/ctest/testf.c.txt
2023-01-27 14:32:13 +01:00

40 lines
769 B
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

NEW
AUTO 3,1
#include <stdio.h>
#include <math.h>
int main(int argc, char *argv[]) {
printf("one " \
"two\n");
float f1 = 99;
float SQR=sqr(f1);
printf("f1=%e, sqr(f1)=%e\r\n", f1, SQR);
getchar();
float f2 = PI / 3;
printf("f2=%e\r\n", f2);
float COSPI3=cos(f2);
printf("COSPI3=%e\r\n", COSPI3);
float PWR=pwr(16, 3);
printf("PWR=%e\r\n", PWR);
float BILLION=1000000000; //9E6E6B2800
printf("BILLION=%e %h%h%h%h%h\r\n", BILLION, BILLION);
float a = 66 / 3;
printf("a=%e\r\n", a);
a=a+1;
printf("a=%e\r\n", a);
float mul=256*128;
printf("mul=%e\r\n", mul);
puts("Press a key");
getchar();
}
MAN
TEXT root/ctest/testf.c