1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
\subsection{RN}
\label{labrn}
\noindent Name: \textbf{RN}\\
\phantom{aaa}constant representing rounding-to-nearest mode.\\[0.2cm]
\noindent Library names:\\
\verb| sollya_obj_t sollya_lib_round_to_nearest()|\\
\verb| int sollya_lib_is_round_to_nearest(sollya_obj_t)|\\[0.2cm]
\noindent Description: \begin{itemize}
\item \textbf{RN} is used in command \textbf{round} to specify that the value must be rounded
to the nearest representable floating-point number.
\end{itemize}
\noindent Example 1:
\begin{center}\begin{minipage}{15cm}\begin{Verbatim}[frame=single]
> display=binary!;
> round(Pi,20,RN);
1.100100100001111111_2 * 2^(1)
\end{Verbatim}
\end{minipage}\end{center}
See also: \textbf{RD} (\ref{labrd}), \textbf{RU} (\ref{labru}), \textbf{RZ} (\ref{labrz}), \textbf{round} (\ref{labround}), \textbf{nearestint} (\ref{labnearestint})
|