## Compare two revisions of: Rounding

 ... ... @@ -49,12 +49,12 @@ Logically displayprecision ≥ correctorprecision 49 49 LaTeX 50 50 \correctorprecision{4} 51 51 % The following is NOT allowed, 52 -% since displayprecision (default 2) is now smaller then the correctorprecision 52 +% since displayprecision (default 2) is now smaller than the correctorprecision 53 53  54 54
55 55 When a function was created using the calculate option, the precision defined with the above command will be ignored. 56 56 This is because computations should not be rounded if they are not visible to the user. In case you do want to 57 - display calculated value then set the precision within the function command. Again this value should be ≥ then 57 + display calculated value then set the precision within the function command. Again this value should be ≥ than 58 58 the corrector precision. 59 59
60 60
... ... @@ -66,5 +66,5 @@ places. You can do the following: (two options) 66 66 LaTeX 67 67 \randdouble{a}{0}{10} 68 68 \function[calculate]{a1}{floor(a)} % truncated 69 - \function[calculate]{a2}{floor(a+0.5)} % rounded, no decimal places 69 + \function[calculate]{a2}{floor(a+0.5)} % rounded to integers 70 70  71 71