spelling: nearest

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
Josh Soref 2025-01-28 15:13:22 -05:00
parent 47c7c80798
commit 77b62896d8

View file

@ -230,7 +230,7 @@ void test_math_fixed__S16_3_rounding(void) {
// This test shows how the in between fractional values evaluate to the fixed representation
// Positive numbers round down to nearest fraction
// Negative numbers round up to neareset fraction
// Negative numbers round up to nearest fraction
test_num = (int16_t)((float)-1.249 * (1 << FIXED_S16_3_PRECISION));
num = (Fixed_S16_3){ .raw_value = test_num };
cl_assert(num.integer == -2);