aboutsummaryrefslogtreecommitdiffstats
path: root/intfloat.c
diff options
context:
space:
mode:
Diffstat (limited to 'intfloat.c')
-rw-r--r--intfloat.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/intfloat.c b/intfloat.c
new file mode 100644
index 0000000..1350866
--- /dev/null
+++ b/intfloat.c
@@ -0,0 +1,9 @@
+#include <stdio.h>
+
+int main(int argc, char **argv)
+{
+ float f = 0.12372642183;
+ int i = f;
+ printf("%f %d\n", f, i);
+ return 0;
+}