File: rn.tex

package info (click to toggle)
sollya 8.0%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 17,540 kB
  • sloc: ansic: 124,655; yacc: 7,543; lex: 2,440; makefile: 888; cpp: 77
file content (20 lines) | stat: -rw-r--r-- 849 bytes parent folder | download | duplicates (4)
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})