On 4 March 2011 16:47, Igor Chudov <ichu...@gmail.com> wrote: > if( diff < 0 ) > diff = -diff; > > if (diff > 1E-7){
You can use absf() in HAL modules: if (absf(diff) > 1E-7){ -- atp "Torque wrenches are for the obedience of fools and the guidance of wise men" ------------------------------------------------------------------------------ What You Don't Know About Data Connectivity CAN Hurt You This paper provides an overview of data connectivity, details its effect on application quality, and explores various alternative solutions. http://p.sf.net/sfu/progress-d2d _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users