BPoint::PrintToStream: print some decimal places

Fixes #16505.

Change-Id: I6693b4c4c64d9e6559091bc2c90282db0f294561
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8499
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
This commit is contained in:
ayu-ch 2024-10-22 01:55:18 +05:30 committed by waddlesplash
parent 09abc534f3
commit b88d29aa2c

View File

@ -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);
}