Problem

Operator Precedence. Think about what the results would be for the following expressions, and then type them into the terminal to verify your answers. Briefly explain the results for each one.

>> 1\2 
>> 1/2
>> int8(1/2)
>> int8(1/3)
>> -5^2  
>> -5**2  
>> (-5) ^ 2 
>> (-5) ** 2 
>> 10-6/2 
>> 5*4/2*3

Comments