Function: prefix-numeric-value
prefix-numeric-value is a function defined in callint.c.
Signature
(prefix-numeric-value RAW)
Documentation
Return numeric meaning of raw prefix argument RAW.
A raw prefix argument is what you get from (interactive "P").
Its numeric meaning is what you would get from (interactive "p").
Source Code
// Defined in /usr/src/emacs/src/callint.c
{
Lisp_Object val;
if (NILP (raw))
XSETFASTINT (val, 1);
else if (EQ (raw, Qminus))
XSETINT (val, -1);
else if (CONSP (raw) && FIXNUMP (XCAR (raw)))
val = XCAR (raw);
else if (FIXNUMP (raw))
val = raw;
else
XSETFASTINT (val, 1);
return val;
}