about summary refs log tree commit diff stats
path: root/tests32/test07.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests32/test07.c')
-rw-r--r--tests32/test07.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests32/test07.c b/tests32/test07.c
new file mode 100644
index 00000000..a20936f7
--- /dev/null
+++ b/tests32/test07.c
@@ -0,0 +1,20 @@
+#include <math.h>
+#include <stdio.h>
+
+#ifndef M_PI
+#define M_PI 3.14159265358979323846
+#endif
+
+int main(int argc, char **argv)
+{
+	long double zero = 0.0;
+
+	double si = sin(M_PI / 2.0);
+
+	int a = 3;
+	float b = 1.5;
+	float mul = a * b;
+
+	printf("0 is %Lf, sin(pi/2) is %f and 3*1.5 is %f.\n", zero, si, mul);
+	return 0;
+}