Skip to content

Commit

Permalink
Add reference note to fixed point tests source file
Browse files Browse the repository at this point in the history
  • Loading branch information
phillipjohnston committed Oct 12, 2021
1 parent 11ac93a commit aa35f9e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/c/fixed_point/fixed_point_tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
#include <fixed_point_tests.h>
#include <stdio.h>

/// Want to check some of these values for yourself?
/// Verify them with this page:
/// https://www.rfwireless-world.com/calculators/floating-vs-fixed-point-converter.html

static void double_to_fixed16_test(__attribute__((unused)) void** state)
{
fixed_point_t output_round = double_to_fixed_round(11.5);
Expand Down

0 comments on commit aa35f9e

Please sign in to comment.