#elisp
Function: logb x

This function returns the binary exponent of x . More precisely, the value is the logarithm base 2 of |x|, rounded down to an integer.

(logb 10) ⇒ 3
(logb 10.0e20) ⇒ 69
If you want to change selection, open document below and click on "Move attachment"

GNU Emacs Lisp Reference Manual: Float Basics
s a floating-point number corresponding to the significand sig and exponent exp . Function: copysign x1 x2 This function copies the sign of x2 to the value of x1 , and returns the result. x1 and x2 must be floating point. <span>Function: logb x This function returns the binary exponent of x . More precisely, the value is the logarithm base 2 of |x|, rounded down to an integer. (logb 10) ⇒ 3 (logb 10.0e20) ⇒ 69 Next: Predicates on Numbers, Previous: Integer Basics, Up: Numbers [Contents][Index] <span><body><html>