Function: fround
fround is a function defined in floatfns.c.
Signature
(fround ARG)
Documentation
Return the nearest integer to ARG, as a float.
Other relevant functions are documented in the number group.
Probably introduced at or before Emacs version 19.23.
Shortdoc
;; number
(fround 1.2)
=> 1.0
Source Code
// Defined in /usr/src/emacs/src/floatfns.c
{
CHECK_FLOAT (arg);
double d = XFLOAT_DATA (arg);
d = emacs_rint (d);
return make_float (d);
}