Name:

exponent returns the scaled binary exponent of a number.

Library name:

sollya_obj_t sollya_lib_exponent(sollya_obj_t)

Usage:

exponent(x) : constant -> integer

Parameters:

Description:

Example 1:

   > a=round(Pi,20,RN);
   > e=exponent(a);
   > e;
   -17
   > m=mantissa(a);
   > a-m*2^e;
   0
See also: mantissa, precision
Go back to the list of commands