nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches

◆ sfloat_from_float()

struct sfloat sfloat_from_float ( float float_num)

#include <include/sfloat.h>

Convert the standard float type into SFLOAT type.

Parameters
[in]float_numNumber encoded as a standard float type (binary32 notation from the IEEE 754-2008 specification).
Returns
SFLOAT type (from the IEEE 11073-20601-2008 specification).