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

11,317 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

"name field"
Jun 2011
Thailand

35·41 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

101100001101012 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 983 Posts So 1 AND 12 = true?
2020-07-16, 06:30   #27
xilman
Bamboozled!

"๐บ๐๐ท๐ท๐ญ"
May 2003
Down not across

101100001101012 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×3,229 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

"name field"
Jun 2011
Thailand

35·41 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 49 2021-08-18 07:41 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 10:59.

Thu May 26 10:59:42 UTC 2022 up 42 days, 9:01, 0 users, load averages: 1.07, 1.22, 1.25