Mercurial > emacs
comparison src/floatfns.c @ 43181:0f5eacbb65d9
(Fround): A better doc fix.
| author | Eli Zaretskii <eliz@gnu.org> |
|---|---|
| date | Fri, 08 Feb 2002 10:21:21 +0000 |
| parents | b8eac678ad15 |
| children | 004354581e54 |
comparison
equal
deleted
inserted
replaced
| 43180:d252fb796645 | 43181:0f5eacbb65d9 |
|---|---|
| 859 | 859 |
| 860 DEFUN ("round", Fround, Sround, 1, 2, 0, | 860 DEFUN ("round", Fround, Sround, 1, 2, 0, |
| 861 doc: /* Return the nearest integer to ARG. | 861 doc: /* Return the nearest integer to ARG. |
| 862 With optional DIVISOR, return the nearest integer to ARG/DIVISOR. | 862 With optional DIVISOR, return the nearest integer to ARG/DIVISOR. |
| 863 | 863 |
| 864 If ARG is equally close to both the nearest integer smaller than ARG | 864 Rounding a value equidistant between two integers may choose the |
| 865 and to the nearest integer larger than ARG, the result can be either | 865 integer closer to zero, or it may prefer an even integer, depending on |
| 866 of these two integers, depending on the underlying implementation of | 866 your machine. For example, \(round 2.5\) can return 3 on some |
| 867 the system library. For example, \(round 2.5\) can return 3 on some | |
| 868 systems, but 3 on others. */) | 867 systems, but 3 on others. */) |
| 869 (arg, divisor) | 868 (arg, divisor) |
| 870 Lisp_Object arg, divisor; | 869 Lisp_Object arg, divisor; |
| 871 { | 870 { |
| 872 return rounding_driver (arg, divisor, emacs_rint, round2, "round"); | 871 return rounding_driver (arg, divisor, emacs_rint, round2, "round"); |
