+ 1
bitwise operators ^
hello, can anyone help me out with a bitwise operator that takes double datatype., I tried to cast it long/byte but the result is different from the sololearn answer. wind_chill = ((byte) (35.74 + 0.6215*temp + (0.4275*temp - 35.75) )*(byte) wind_speed ^ (byte) 0.16);
1 Resposta
+ 1
a = 5 = 0101 (In Binary)
b = 7 = 0111 (In Binary)
Bitwise XOR Operation of 5 and 7
0101
^ 0111
________
0010 = 2 (In decimal)