summaryrefslogtreecommitdiff
path: root/calculator.c
diff options
context:
space:
mode:
authorFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2023-12-01 06:52:06 +0000
committerFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2023-12-01 06:52:06 +0000
commitfe55fc744ee370f719c17085ec944a4e485f42b9 (patch)
treef90e275718feb3f2bbcb0178668e905f4826ba4c /calculator.c
parentf779ce2159b3b4843d7bf13f2e8e4e61b0276537 (diff)
Thu, Nov 30, 2023, 10:52 PM -08:00
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 49bf41b..e9b034e 100644
--- a/calculator.c
+++ b/calculator.c
@@ -7,5 +7,5 @@ int main(void)
long y = get_int("y: ");
float z = (float) x / (float) y;
- printf("%f\n", z);
+ printf("%.20f\n", z);
}