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 <Roland.Reichwein@bmw.de>
Co-authored-by: John Wellbelove <jwellbelove@users.noreply.github.com>
This commit is contained in:
Bram Meijer 2026-03-27 09:11:45 +01:00 committed by GitHub
parent 2f242e37f2
commit ab03ea114f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -338,11 +338,11 @@ namespace etl
} }
// Find the integral part of the floating point // 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<uworkspace_t>(f_integral); uworkspace_t integral = static_cast<uworkspace_t>(f_integral);
// Find the fractional part of the floating point. // Find the fractional part of the floating point.
uworkspace_t fractional = static_cast<uworkspace_t>(round((etl::absolute(value) - f_integral) * multiplier)); uworkspace_t fractional = static_cast<uworkspace_t>(::round((etl::absolute(value) - f_integral) * multiplier));
// Check for a rounding carry to the integral. // Check for a rounding carry to the integral.
if (fractional == multiplier) if (fractional == multiplier)