From 2e58cb25cacc05f1e07c63f26ec326b87d27001c Mon Sep 17 00:00:00 2001 From: Viktor Govako Date: Wed, 6 Dec 2023 21:23:32 -0300 Subject: [PATCH] Use PowUint instead of std::pow. Signed-off-by: Viktor Govako --- platform/distance.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/distance.cpp b/platform/distance.cpp index 36cd589f37..360c8d687f 100644 --- a/platform/distance.cpp +++ b/platform/distance.cpp @@ -66,7 +66,7 @@ double WithPrecision(double value, uint8_t precision) if (precision == 0) return std::round(value); - double const factor = std::pow(10, precision); + double const factor = base::PowUint(10.0, precision); return std::round(value * factor) / factor; } } // namespace