The MOD stuff can be found in the help system, by typing 'MOD' in the search dialog. In fact, all the mathematical

functions are found there.

Regards,

John

RecipeTools Web Site: <

http://recipetools.gotdns.com/>

http://recipetools.gotdns.com/
From:

ntb-clips@yahoogroups.com [mailto:

ntb-clips@yahoogroups.com] On Behalf Of Jean-Fran�ois Colas

Sent: Friday, July 20, 2012 13:09

To:

ntb-clips@yahoogroups.com
Subject: Re: [Clip] Re: Number odd or even?

Mark,

Is worth noticing it indeed. Your solution was OK for me though, since

what I had to test is the length of the selection.

Did you (or someone else) discovered some other undocumented stuff ?

Thanks for all

J.-F.

Le 20/07/2012 21:04, breaumark �crit :

> Jean-Fran�ois,

>

> I just noticed... NoteTab's version of MOD gives a negative result with negative dividends. For example, -5 MOD 2 =

-1, not 1. Therefore, test ^$Calc(^%n% MOD 2)$ for 0 (even) or non-0 (odd). Sorry for the confusion.

>

> Mark

>

>

>

> --- In ntb-clips@yahoogroups.com <mailto:ntb-clips%40yahoogroups.com> , Jean-Fran�ois Colas<jfcolas@...> wrote:

>>

>> Hello,

>>

>> Thanks, works great! Where did you get this info? I didn't see it in the

>> help file (Studied for V4.95). Or I didn' look at the right help file.

>>

>> J.-F.

>>

>> Le 20/07/2012 18:14, breaumark a �crit :

>>> ^!Set %n%=147

>>> ; Returns 1 if %n% is odd, 0 if %n% is even

>>> ^!Info ^$Calc(^%n% MOD 2)$

>

>

>

>

> ------------------------------------

>

> Fookes Software: http://www.fookes.com/

> NoteTab website: http://www.notetab.com/

> NoteTab Discussion Lists: http://www.notetab.com/groups.php

>

> ***

> Yahoo! Groups Links

>

>

>

[Non-text portions of this message have been removed]