From 886ef8cbcf1bc5d2b02b698b08fa5a6a17588b4d Mon Sep 17 00:00:00 2001 From: Matthew Vasseur Date: Sat, 3 Sep 2022 12:25:14 -0500 Subject: [PATCH] Fix listing_7_9.cpp to match book --- chapter_7/listing_7_9.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chapter_7/listing_7_9.cpp b/chapter_7/listing_7_9.cpp index c16391e..a442a4f 100644 --- a/chapter_7/listing_7_9.cpp +++ b/chapter_7/listing_7_9.cpp @@ -5,5 +5,5 @@ int main() { double x = std::numeric_limits::max(); long double y = std::numeric_limits::max(); float z = std::numeric_limits::max(); // Undefined Behavior - printf("x: %g\ny: %g\nz: %g"); + printf("x: %g\ny: %Lg\nz: %g", x, y, z); }