On 31 December 2010 10:11, Chris Morley <[email protected]> wrote:
> p_int = (int) (block->p_number + 0.0001); > > -1 +.0001 is (rightfully) truncated to zero. You could use the floor() function instead of casting to an int. (Included in rtapi_math) -- atp "Torque wrenches are for the obedience of fools and the guidance of wise men" ------------------------------------------------------------------------------ Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolidate database storage, standardize their database environment, and, should the need arise, upgrade to a full multi-node Oracle RAC database without downtime or disruption http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ Emc-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-developers
