Function: float
float is a function defined in floatfns.c.
Signature
(float ARG)
Documentation
Return the floating point number equal to ARG.
Other relevant functions are documented in the number group.
Probably introduced at or before Emacs version 19.29.
Shortdoc
;; number
(float 2)
=> 2.0
Source Code
// Defined in /usr/src/emacs/src/floatfns.c
{
CHECK_NUMBER (arg);
/* If ARG is a float, give 'em the same float back. */
return FLOATP (arg) ? arg : make_float (XFLOATINT (arg));
}