A2osX/ROOT/ctest/testf.c.txt

40 lines
769 B
Plaintext
Raw Permalink Normal View History

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