mersenneforum.org which is the smallest even number...
 Register FAQ Search Today's Posts Mark Forums Read

2020-07-05, 08:40   #23
xilman
Bamboozled!

"πΊππ·π·π­"
May 2003
Down not across

101000000100012 Posts

Quote:
 Originally Posted by kriesel His programmer wife could have asked, why he came home one loaf short. Buy a loaf (1), + if (they have any eggs) get 12 (loaves). 1+12=13.
To which he would reply "you used the AND operator, not PLUS.

2020-07-15, 17:23   #24
LaurV
Romulan Interpreter

Jun 2011
Thailand

874210 Posts

Quote:
 Originally Posted by xilman To which he would reply "you used the AND operator, not PLUS.
To which he should come with no loafs (1 and 12 = 0)

2020-07-15, 19:20   #25
xilman
Bamboozled!

"πΊππ·π·π­"
May 2003
Down not across

3×13×263 Posts

Quote:
 Originally Posted by LaurV To which he should come with no loafs (1 and 12 = 0)
logical AND , not bitwise AND

 2020-07-15, 20:09 #26 kruoli     "Oliver" Sep 2017 Porta Westfalica, DE 1001100112 Posts So 1 AND 12 = true?
2020-07-16, 06:30   #27
xilman
Bamboozled!

"πΊππ·π·π­"
May 2003
Down not across

3·13·263 Posts

Quote:
 Originally Posted by kruoli So 1 AND 12 = true?
In Perl:

&buy ($have_eggs ? 12 : 1,$loaf)

2020-07-16, 06:51   #28
retina
Undefined

"The unspeakable one"
Jun 2006
My evil lair

2×19×151 Posts

Quote:
Originally Posted by xilman
Quote:
 Originally Posted by kruoli So 1 AND 12 = true?
In Perl:

&buy ($have_eggs ? 12 : 1,$loaf)
Where is the AND?

2020-07-18, 08:54   #29
LaurV
Romulan Interpreter

Jun 2011
Thailand

2×3×31×47 Posts

Quote:
 Originally Posted by xilman logical AND , not bitwise AND
Every one with his domain, I work very close to metal

 Similar Threads Thread Thread Starter Forum Replies Last Post 2147483647 Factoring 29 2020-09-25 03:28 jasong Math 5 2007-05-29 13:30 ixfd64 Lounge 22 2006-02-01 17:06 Fusion_power Puzzles 8 2003-11-18 19:36 wirthi Math 10 2003-10-05 13:02

All times are UTC. The time now is 20:48.

Sun Sep 27 20:48:59 UTC 2020 up 17 days, 17:59, 0 users, load averages: 1.80, 1.72, 1.69