From 6e454d2d74261f3f054fb73cb8bdf8ee8df67a06 Mon Sep 17 00:00:00 2001 From: EliteTK Date: Wed, 28 May 2014 00:46:53 +0100 Subject: More stuff. --- intfloat.c | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 intfloat.c (limited to 'intfloat.c') 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 + +int main(int argc, char **argv) +{ + float f = 0.12372642183; + int i = f; + printf("%f %d\n", f, i); + return 0; +} -- cgit v1.2.3-54-g00ecf