On Tuesday 05 February 2008, Jack wrote:
>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)
>
No more than I know about math, I'd still call the excel answer wrong.  Math 
ops with negative numbers are I believe supposed to return positive values.  
Are there any exceptions?

>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



-- 
Cheers, Gene
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Have a nice day!

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