← Back to davo.co
summaryrefslogtreecommitdiffstats
path: root/precision.c
diff options
context:
space:
mode:
Diffstat (limited to 'precision.c')
-rw-r--r--precision.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/precision.c b/precision.c
new file mode 100644
index 0000000..efea85b
--- /dev/null
+++ b/precision.c
@@ -0,0 +1,8 @@
+#include <stdio.h>
+
+int main(void) {
+ printf("%.20e %.20e\n",
+ ((1.0E-13 + 1.0E-13)),
+ (1.0E-13 + (1.0E-13 + 1.0)) - 1.0
+ );
+}