Questions tagged as 'operador'

0
answers

Do a subtraction with a 4-bit ALU with negative inputs at the edges of the rendering range

Having as inputs an ALU -6 (1010) and -8 (1000), both encoded using the Complement to 2, if I want to do the subtraction 1010 - 1000 we usually use the "trick" of doing the Complement to 2 of the second operand so that the expression a - (-b) re...
asked by 22.02.2018 / 22:51
4
answers

The operator does not work || [closed]

I'm new to learning JavaScript and I'm doing internship but I do not get this right: var estatura = 1.70 var edad2 = 30 if( edad2 == 30 || estatura = 1.60){ document. write("true");} else{ document.write("false");} I marked it as a...
asked by 07.03.2018 / 19:41