Added math.rint() -- round according to current IEEE754 mode

This commit is contained in:
Guido van Rossum 2000-05-11 18:19:42 +00:00
parent dab6cb8f6d
commit 71260b846e
5 changed files with 16 additions and 0 deletions

View file

@ -93,6 +93,10 @@ carry the sign of \var{x}. The integer part is returned as a real.
Return \code{\var{x}**\var{y}}.
\end{funcdesc}
\begin{funcdesc}{rint}{x, y}
Return the integer nearest to \var{x} as a real.
\end{funcdesc}
\begin{funcdesc}{sin}{x}
Return the sine of \var{x}.
\end{funcdesc}