Detect Even Number

This is a discussion on Detect Even Number within the alt.comp.lang.php forums, part of the PHP Programming Forums category; Michael Fesser wrote: > This will always be FALSE, because the return type of the modulo > operator is not ...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #11 (permalink)  
Old 04-17-2008
Cujo
 
Posts: n/a
Default Re: Detect Even Number

Michael Fesser wrote:

> This will always be FALSE, because the return type of the modulo
> operator is not a boolean.


AAArgh, I wrote that without thinking.

You are absolutely right, that's exactly what I meant.

regards, f.
Reply With Quote
  #12 (permalink)  
Old 04-17-2008
Sylvain SF
 
Posts: n/a
Default Re: Detect Even Number

Cujo wrote on 17/04/2008 23:55:
>
> Of course they don't, if they did we wouldn't be talking about handling
> **more generic** cases in the first place, would we ?


you "wrote that without thinking" too ? or just misunderstood my point ?

this thread looks very old to me, if you feel comfortable with the %
operator, do play alone with it, I have to recode my Montgomery methods.

Sylvain.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 02:41 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0