\section{aversive\_\-10-03-12/modules/base/math/fixed\_\-point/f16\_\-double.c File Reference}
\label{f16__double_8c}\index{aversive\_\-10-03-12/modules/base/math/fixed\_\-point/f16\_\-double.c@{aversive\_\-10-03-12/modules/base/math/fixed\_\-point/f16\_\-double.c}}
{\tt \#include $<$stdio.h$>$}\par
{\tt \#include $<$f16.h$>$}\par
\subsection*{Defines}
\begin{CompactItemize}
\item 
\#define {\bf POW2\_\-8F}~(256.0)
\end{CompactItemize}
\subsection*{Functions}
\begin{CompactItemize}
\item 
{\bf f16} {\bf f16\_\-from\_\-double} (double d)
\item 
double {\bf f16\_\-to\_\-double} ({\bf f16} f)
\end{CompactItemize}


\subsection{Define Documentation}
\index{f16\_\-double.c@{f16\_\-double.c}!POW2\_\-8F@{POW2\_\-8F}}
\index{POW2\_\-8F@{POW2\_\-8F}!f16_double.c@{f16\_\-double.c}}
\subsubsection[POW2\_\-8F]{\setlength{\rightskip}{0pt plus 5cm}\#define POW2\_\-8F~(256.0)}\label{f16__double_8c_5dd810cea63fe5154300cdbc9edcb1be}




Definition at line 26 of file f16\_\-double.c.

Referenced by f16\_\-from\_\-double(), and f16\_\-to\_\-double().

\subsection{Function Documentation}
\index{f16\_\-double.c@{f16\_\-double.c}!f16\_\-from\_\-double@{f16\_\-from\_\-double}}
\index{f16\_\-from\_\-double@{f16\_\-from\_\-double}!f16_double.c@{f16\_\-double.c}}
\subsubsection[f16\_\-from\_\-double]{\setlength{\rightskip}{0pt plus 5cm}{\bf f16} f16\_\-from\_\-double (double {\em f})}\label{f16__double_8c_056b3395c385a2befea3ac6cf19884e4}


convert a double to a f16 

Definition at line 31 of file f16\_\-double.c.

References parse\_\-symbols::f, and POW2\_\-8F.\index{f16\_\-double.c@{f16\_\-double.c}!f16\_\-to\_\-double@{f16\_\-to\_\-double}}
\index{f16\_\-to\_\-double@{f16\_\-to\_\-double}!f16_double.c@{f16\_\-double.c}}
\subsubsection[f16\_\-to\_\-double]{\setlength{\rightskip}{0pt plus 5cm}double f16\_\-to\_\-double ({\bf f16} {\em fix})}\label{f16__double_8c_9a646b190f750eaed5fdc7b4c8fb0b1d}


convert a f16 to a double 

Definition at line 40 of file f16\_\-double.c.

References POW2\_\-8F.

Referenced by f16\_\-print().