From: cux Covalenco on
Hi,

I'm using variable precision arithmetic to do some calculations. I need to check that fractional part of the result is less then a value. In the code I have something like

res = vpa ( <expression> )
if (res - fix(res) < 1.0e-9 )
....

I get error "Function 'lt' is not defined for values of class 'sym'."
I found on the internet that comparison operators are not defined for vpa.
Is there any way to do such a comparison?


Thank you,
Andrei