From ab03ea114fa59bc9ace96e5f75063da0e1bd8be5 Mon Sep 17 00:00:00 2001 From: Bram Meijer <48760013+Brambovich@users.noreply.github.com> Date: Fri, 27 Mar 2026 09:11:45 +0100 Subject: [PATCH] Fix compilation issue when including etl/chrono next to etl/to_string. (#1365) * Print test names at test time (#1343) * Fix namespace issue of floor/round in to_string_helper --------- Co-authored-by: Roland Reichwein Co-authored-by: John Wellbelove --- include/etl/private/to_string_helper.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/etl/private/to_string_helper.h b/include/etl/private/to_string_helper.h index 2c3cbed5..9b097ca8 100644 --- a/include/etl/private/to_string_helper.h +++ b/include/etl/private/to_string_helper.h @@ -338,11 +338,11 @@ namespace etl } // Find the integral part of the floating point - T f_integral = floor(etl::absolute(value)); + T f_integral = ::floor(etl::absolute(value)); uworkspace_t integral = static_cast(f_integral); // Find the fractional part of the floating point. - uworkspace_t fractional = static_cast(round((etl::absolute(value) - f_integral) * multiplier)); + uworkspace_t fractional = static_cast(::round((etl::absolute(value) - f_integral) * multiplier)); // Check for a rounding carry to the integral. if (fractional == multiplier)