Fix pow10_int comment accuracy

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
J. Nick Koston
2026-02-19 16:48:55 -06:00
parent 6a8844e2fc
commit 9ce63603a6

View File

@@ -441,7 +441,7 @@ template<size_t STACK_SIZE, typename T = uint8_t> 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) {