summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2023-12-01 06:53:38 +0000
committerFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2023-12-01 06:53:38 +0000
commitb10bc0499111388d13dbc0926f425edc01ba3653 (patch)
tree6405e2fde2305ddbbbf072b7b0f9d5bfb6ee6cb0
parentfe55fc744ee370f719c17085ec944a4e485f42b9 (diff)
Thu, Nov 30, 2023, 10:53 PM -08:00
-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);
}