boolean-operations Questions
7
Solved
Trying to perform a single boolean NOT operation, it appears that under MS SQL Server 2005, the following block does not work
DECLARE @MyBoolean bit;
SET @MyBoolean = 0;
SET @MyBoolean = NOT @MyBo...
Almagest asked 7/10, 2008 at 9:35
2
Solved
I am having an expression, suppose,
a = 1 && (b = 1 || b != 0 ) && (c >= 35 || d != 5) && (c >= 38 || d = 6)
I expect it to be reduced to,
a = 1 && b != 0 ...
Smolt asked 28/2, 2012 at 7:13
6
Solved
I'm working on an application, I need to be able to combine two overlapping arbitrary shapes as drawn by the user. This would be a Union operation on the two shapes. The resultant shape would be th...
Toolmaker asked 26/1, 2010 at 14:43
5
Say I have a large array of M 32 bit ints in which each value has no more than N bits set. Now I want to return the subset which matches the query Target AND Value == Target, i.e. values in which t...
Decare asked 25/8, 2011 at 10:5
5
Solved
I like to write enum or integer to pass option to my methods. Is there a pattern or a method in C# to check if an (int 1,2,4,8,...) option is true or false. I think it should easily be possible via...
Disperse asked 20/5, 2011 at 9:21
2
Solved
What is a optimal way to replace the Least Significant Bit of a byte, with a provided bit?
I know how to do checking and comparing last bit (using for example posix ffs() function), but I want to ...
Absonant asked 19/5, 2011 at 13:30
3
Solved
I'm pretty sure this is a simple fundamental flaw in my newb PHP knowledge, but I was surprised when the following happened:
$result is TRUE... so why is it considered equal to the string "email...
Manhood asked 9/5, 2011 at 14:23
2
Solved
I have some code I have in the Arduino environment that requires x (in increments of 8) boolean values that are manipulatable during run time for some shift register code. So currently I am using a...
Kuhlman asked 10/4, 2011 at 13:51
4
Solved
I got frustated with my other question. So i wrote up this example.
In C the below is true. See demo
int main()
{
printf("%d", 1 && 2);
return 0;
}
Output:
1
In C#. It is FALSE. WHY ...
Donovan asked 5/3, 2011 at 12:20
2
Solved
I am attempting to learn more about this to implement in my project.
I currently have got this basically:
unsigned char flags = 0; //8 bits
flags |= 0x2; //apply random flag
if(flags & 0x2)...
Kesha asked 16/11, 2010 at 6:16
22
Possible Duplicate:
Why do most programming languages only have binary equality comparison operators?
I have had a simple question for a fairly long time--since I started learning pro...
Rellia asked 6/10, 2010 at 6:35
7
Solved
Often in PHP, I see:
$result = mysql_query($query) or die();
Coming from python, I know why this should work, because or returns the first value if it is true in a boolean context, and the secon...
Kessler asked 21/7, 2010 at 12:11
8
Newbie question.
How to calculate the value of the formula A f B, where f - the binary function OR or AND?
Fortify asked 17/5, 2010 at 10:15
107
Solved
Can I convert a string representing a boolean value (e.g., 'true', 'false') into an intrinsic type in JavaScript?
I have a hidden form in HTML that is updated based on a user's selection within a l...
Cryobiology asked 5/11, 2008 at 0:13
© 2022 - 2024 — McMap. All rights reserved.