Name:
mantissa
returns the integer mantissa of a number.
Usage:
mantissa
(
x
) :
constant
->
integer
Parameters:
x
is a dyadic number.
Description:
mantissa
(x) is by definition x if x equals 0, NaN, or Inf.
If
x
is not zero, it can be uniquely written as x = m*2^e where m is an odd integer and e is an integer.
mantissa
(x) returns m.
Example 1:
> a=round(Pi,20,RN);
> e=exponent(a);
> m=mantissa(a);
> m;
411775
> a-m*2^e;
0
See also:
exponent
,
precision
Go back to the list of commands