+ 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);

3rd Jan 2018, 8:25 AM
Alemseged Hailu
Alemseged Hailu - avatar
1 Antwort
+ 1
a = 5 = 0101 (In Binary) b = 7 = 0111 (In Binary) Bitwise XOR Operation of 5 and 7 0101 ^ 0111 ________ 0010 = 2 (In decimal)
20th Jun 2019, 7:22 AM
RAJAMANICKAM S
RAJAMANICKAM S - avatar