Name:

roundcorrectly rounds an approximation range correctly to some precision

Library name:

sollya_obj_t sollya_lib_roundcorrectly(sollya_obj_t)

Usage:

roundcorrectly(range) : range -> constant

Parameters:

Description:

Example 1:

   > printbinary(roundcorrectly([1.010001_2; 1.0101_2]));
   1.01_2
   > printbinary(roundcorrectly([1.00001_2; 1.001_2]));
   1_2

Example 2:

   > roundcorrectly([-1; 1]);
   @NaN@
See also: round, mantissa, exponent, precision
Go back to the list of commands