From ba007e5f691589db0b113300b4bf0467c38f343a Mon Sep 17 00:00:00 2001 From: twsta Date: Wed, 12 Oct 2022 20:28:37 -0700 Subject: fixed integer division --- .vs/slnx.sqlite | Bin 319488 -> 319488 bytes CST116-Ch6-Debugging/CST116-Ch6-Debugging.cpp | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/.vs/slnx.sqlite b/.vs/slnx.sqlite index 6da3937..670fd7e 100644 Binary files a/.vs/slnx.sqlite and b/.vs/slnx.sqlite differ diff --git a/CST116-Ch6-Debugging/CST116-Ch6-Debugging.cpp b/CST116-Ch6-Debugging/CST116-Ch6-Debugging.cpp index cfede8f..a4cede0 100644 --- a/CST116-Ch6-Debugging/CST116-Ch6-Debugging.cpp +++ b/CST116-Ch6-Debugging/CST116-Ch6-Debugging.cpp @@ -51,7 +51,7 @@ int main() // Breakpoint 1 // Put a breakpoint on the following line - celcius = 5 / 9 * (fahrenheit - 32); + celcius = 5.0 / 9.0 * (fahrenheit - 32); cout << fahrenheit << " degrees F = " << celcius << " degrees C" << endl; -- cgit v1.2.3