From 5c0f2414cd6d988a4eab93fc21bc3b80388907e8 Mon Sep 17 00:00:00 2001 From: kobewi Date: Tue, 26 Mar 2024 17:04:14 +0100 Subject: Always add decimal when printing float --- core/math/vector3.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/math/vector3.cpp') diff --git a/core/math/vector3.cpp b/core/math/vector3.cpp index 1e90002665..e18ac3b011 100644 --- a/core/math/vector3.cpp +++ b/core/math/vector3.cpp @@ -165,7 +165,7 @@ bool Vector3::is_finite() const { } Vector3::operator String() const { - return "(" + String::num_real(x, false) + ", " + String::num_real(y, false) + ", " + String::num_real(z, false) + ")"; + return "(" + String::num_real(x, true) + ", " + String::num_real(y, true) + ", " + String::num_real(z, true) + ")"; } Vector3::operator Vector3i() const { -- cgit v1.2.3