I made a mistake in my previous email. I meant to enter #1=-4 #2=-15 X0 G0 X [#2 MOD #1] M2
should position x to -3 (according to the mod function in Excel) however it positions it to +1 Jack Ensor Jack wrote: > It seems the MOD function does not work for negative numbers. I had to > use the ABS function first to get the right answers. > for example the code: > #1=4 > #2=15 > X0 G0 > X [#2 MOD #1] > M2 > > should position x to -3 (according to the mod function in Excel) > however it positions it to +1 > > Jack Ensor > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Emc-users mailing list > Emc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-users > > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users