diff --git a/esphome/core/helpers.h b/esphome/core/helpers.h index 0185437cc4..b606e68df3 100644 --- a/esphome/core/helpers.h +++ b/esphome/core/helpers.h @@ -441,7 +441,7 @@ template class SmallBufferWithHeapFallb /// Compute 10^exp using iterative multiplication/division. /// Avoids pulling in powf/__ieee754_powf (~2.3KB flash) for small integer exponents. -/// Exact for non-negative exponents up to 10 (powers of 10 up to 10^10 are exact in float). +/// Matches powf(10, exp) for the int8_t exponent range used by sensor accuracy_decimals. inline float pow10_int(int8_t exp) { float result = 1.0f; if (exp >= 0) {