summaryrefslogtreecommitdiff
path: root/calculator.c
diff options
context:
space:
mode:
Diffstat (limited to 'calculator.c')
-rw-r--r--calculator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/calculator.c b/calculator.c
index e9b034e..037436d 100644
--- a/calculator.c
+++ b/calculator.c
@@ -6,6 +6,6 @@ int main(void)
long x = get_int("x: ");
long y = get_int("y: ");
- float z = (float) x / (float) y;
+ double z = (double) x / (double) y;
printf("%.20f\n", z);
}