From b88d29aa2c77f6dfdcad2391aa283b484cc2ac83 Mon Sep 17 00:00:00 2001 From: ayu-ch Date: Tue, 22 Oct 2024 01:55:18 +0530 Subject: [PATCH] BPoint::PrintToStream: print some decimal places MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #16505. Change-Id: I6693b4c4c64d9e6559091bc2c90282db0f294561 Reviewed-on: https://review.haiku-os.org/c/haiku/+/8499 Haiku-Format: Haiku-format Bot Reviewed-by: Jérôme Duval Tested-by: Commit checker robot --- src/kits/interface/Point.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kits/interface/Point.cpp b/src/kits/interface/Point.cpp index cf35ccdd67..d30449f5ec 100644 --- a/src/kits/interface/Point.cpp +++ b/src/kits/interface/Point.cpp @@ -32,7 +32,7 @@ BPoint::ConstrainTo(BRect rect) void BPoint::PrintToStream() const { - printf("BPoint(x:%.0f, y:%.0f)\n", x, y); + printf("BPoint(x:%f, y:%f)\n", x, y); }