well, I don't know much about emc's implementation, but isn't the
division of two negative numbers suposed to give a positive result?.

Neither know much about iso definition of MOD, but it makes sense to
think of it both ways, as the integer part of a division or as the
answer to 'how many times does this fit into that'?, so allowing
negative numbers seems optional. Anyway, make a few tests with all the
possible alternatives and take that knowledge to your coding.

Not of much help, I know, but I'm feeling communicative...

Arturo Mieussens.

El mar, 05-02-2008 a las 10:53 -0500, Jack escribió:
> 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


-------------------------------------------------------------------------
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

Reply via email to