mirror of
https://github.com/google/pebble.git
synced 2025-04-30 15:21:41 -04:00
spelling: nearest
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
parent
47c7c80798
commit
77b62896d8
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue