aboutsummaryrefslogtreecommitdiffstats
path: root/intfloat.c
diff options
context:
space:
mode:
authorEliteTK <tomasz.kramkowski@gmail.com>2014-05-28 00:46:53 +0100
committerEliteTK <tomasz.kramkowski@gmail.com>2014-05-28 00:46:53 +0100
commit6e454d2d74261f3f054fb73cb8bdf8ee8df67a06 (patch)
treeec44e7dd6a3150e18cecb8602e94551cbcca2076 /intfloat.c
parenta530bad7a6ea2778129db0dc26c446d9f6df6ddd (diff)
downloadc-stuff-6e454d2d74261f3f054fb73cb8bdf8ee8df67a06.tar.gz
c-stuff-6e454d2d74261f3f054fb73cb8bdf8ee8df67a06.tar.xz
c-stuff-6e454d2d74261f3f054fb73cb8bdf8ee8df67a06.zip
More stuff.
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;
+}