RE: [Clip] Re: Number odd or even?
- 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.
RecipeTools Web Site: <http://recipetools.gotdns.com/> http://recipetools.gotdns.com/
From: email@example.com [mailto:firstname.lastname@example.org] On Behalf Of Jean-Fran�ois Colas
Sent: Friday, July 20, 2012 13:09
Subject: Re: [Clip] Re: Number odd or even?
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
Le 20/07/2012 21:04, breaumark �crit :
> Jean-Fran�ois,-1, not 1. Therefore, test ^$Calc(^%n% MOD 2)$ for 0 (even) or non-0 (odd). Sorry for the confusion.
> I just noticed... NoteTab's version of MOD gives a negative result with negative dividends. For example, -5 MOD 2 =
>[Non-text portions of this message have been removed]
> --- In email@example.com <mailto:ntb-clips%40yahoogroups.com> , Jean-Fran�ois Colas<jfcolas@...> wrote:
>> 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.
>> 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