Chat with our AI personalities
Assuming you mean Visual Basic then: I really do not know much computer programming, but could you not write something along the lines of: dim x as integer dim y as string If x = 0 then y = "neither" Else If x > 0 then y = "positive" End if If x < 0 then y = "negative" End if End Else End if Then if you set the x variable to the number you are interested in the code will set the y variable to "neither", "positive" or "negative". Hope that perhaps helps a little. P.S. This answer can't be indented as you would normally do to make the code more readable.
see the program
One way is using the Twos (2s) complement; that is you find the binary representation of the positive number of -19, flip all the bits (0s to 1s and 1s to 0s), and finally add 1 to it.The positive bit of -19 is simply 19. It has a binary code of 0001 0011 (8 bits are required for this particular method). Flipping the bits, we get 1110 1100. Adding 1 (or 0000 0001) to our last answer, we get 1110 1101 which would be the binary representation of -19.
32 is the ASCII Code for a space.
a bar code or upc code (universal product code)