float_to_round function?



On Nov. 3, 2011, I wrote:
----------------
>I would like to have a function
>float_to_round (expr) which parses the
>expression, and for each element z,
>if floatnump(z) is true, converts that
>element to round(z), and returns the expression.
----------------------------------

Let me refine the condition to:
if floatnump(z) is true and
abs (z - round(z)) < 1.0e-6 then
z is replaced by round(z).

Hence bessel_j(1/2,x) would not
be affected.

Ted Woollett