deuce.emacs.floatfns

abs

(abs arg)
Return the absolute value of ARG.

acos

(acos arg)
Return the inverse cosine of ARG.

asin

(asin arg)
Return the inverse sine of ARG.

atan

(atan y & [x])
Return the inverse tangent of the arguments.
If only one argument Y is given, return the inverse tangent of Y.
If two arguments Y and X are given, return the inverse tangent of Y
divided by X, i.e. the angle in radians between the vector (X, Y)
and the x-axis.

ceiling

(ceiling arg & [divisor])
Return the smallest integer no less than ARG.
This rounds the value towards +inf.
With optional DIVISOR, return the smallest integer no less than ARG/DIVISOR.

copysign

(copysign x1 x2)
Copy sign of X2 to value of X1, and return the result.
Cause an error if X1 or X2 is not a float.

cos

(cos arg)
Return the cosine of ARG.

exp

(exp arg)
Return the exponential base e of ARG.

expt

(expt arg1 arg2)
Return the exponential ARG1 ** ARG2.

fceiling

(fceiling arg)
Return the smallest integer no less than ARG, as a float.
(Round toward +inf.)

ffloor

(ffloor arg)
Return the largest integer no greater than ARG, as a float.
(Round towards -inf.)

float

(float arg)
Return the floating point number equal to ARG.

floor

(floor arg & [divisor])
Return the largest integer no greater than ARG.
This rounds the value towards -inf.
With optional DIVISOR, return the largest integer no greater than ARG/DIVISOR.

frexp

(frexp x)
Get significand and exponent of a floating point number.
Breaks the floating point number X into its binary significand SGNFCAND
(a floating point value between 0.5 (included) and 1.0 (excluded))
and an integral exponent EXP for 2, such that:

  X = SGNFCAND * 2^EXP

The function returns the cons cell (SGNFCAND . EXP).
If X is zero, both parts (SGNFCAND and EXP) are zero.

fround

(fround arg)
Return the nearest integer to ARG, as a float.

ftruncate

(ftruncate arg)
Truncate a floating point number to an integral float value.
Rounds the value toward zero.

isnan

(isnan x)
Return non nil iff argument X is a NaN.

ldexp

(ldexp sgnfcand & [exponent])
Construct number X from significand SGNFCAND and exponent EXP.
Returns the floating point value resulting from multiplying SGNFCAND
(the significand) by 2 raised to the power of EXP (the exponent).

log

(log arg & [base])
Return the natural logarithm of ARG.
If the optional argument BASE is given, return log ARG using that base.

log10

(log10 arg)
Return the logarithm base 10 of ARG.

logb

(logb arg)
Returns largest integer <= the base 2 log of the magnitude of ARG.
This is the same as the exponent of a float.

round

(round arg & [divisor])
Return the nearest integer to ARG.
With optional DIVISOR, return the nearest integer to ARG/DIVISOR.

Rounding a value equidistant between two integers may choose the
integer closer to zero, or it may prefer an even integer, depending on
your machine.  For example, (round 2.5) can return 3 on some
systems, but 2 on others.

sin

(sin arg)
Return the sine of ARG.

sqrt

(sqrt arg)
Return the square root of ARG.

tan

(tan arg)
Return the tangent of ARG.

truncate

(truncate arg & [divisor])
Truncate a floating point number to an int.
Rounds ARG toward zero.
With optional DIVISOR, truncate ARG/DIVISOR.