what does == mean? i see it in programming and i saw it again just now. is it a mathematical symbol??
Isn't it an equality operator? It tests the value on the left to what's on the right.
@lgbasallote Supposedly we have \[a==b\] This is a symbol for checking the equality of the two mostly used along if and else statement
what's the difference with =?
= on the other hand assigns the value of right variable to the left a=b a's value will be set the value of b
Strictly in programming
im not getting it..sorry...i just cant imagine it
== is a condition?
In programming (eg C++) = is the assignment operator Ex: If you wanted to assign the value of 5 to x, then you would type "int x = 5;" ------------------------------------------------------- == is the equality test operator. You use this to test to see if two things are equal to each other So if x is 5, then x == 5 would return true, but something like 2 == 3 would return false
oh i see...so it's only used in programming? it's not a mathematical symbol?
it's mostly used in programming although mathematica uses it too
but mathematica is both a programming and math environment, so that makes a bit of sense
lol i guess i asked in the wrong section huh =)) i thought it was mathematics because i saw a logic question and it had that notation
math and logic are hard to separate, so you're in the right section
Join our real-time social learning platform and learn together with your friends!