Update README.rst to include --use-float docs
Per Pull Request comments
@@ -312,6 +312,14 @@ database. The database is ``tests/files/dbc/motohawk.dbc``.
See `motohawk.h`_ and `motohawk.c`_ for the contents of the generated
files.
+In this example we use ``--use-float`` so floating point numbers in the generated
+code are single precision (``float``) instead of double precision (``double``).
+
+.. code-block:: text
+
+ $ python3 -m cantools generate_c_source --use-float tests/files/dbc/motohawk.dbc
+ Successfully generated motohawk.h and motohawk.c.
+
In the next example we use ``--database-name`` to set a custom
namespace for all generated types, defines and functions. The output
file names are also changed by this option.
