POSITION:028,114
COLOUR:STANDARD
TEXT:00,If arithmetic expressions are used with logical operators, non-zero
TEXT:16,results like 5.2 or -4 are assumed true. Zero results still mean false.
TEXT:32,Euphoria also uses a system called precedence that defines which parts
TEXT:16,of larger complex expressions are done first by default. For example:
COLOUR:EUPHORIA
TEXT:32,atom rent1, rent2, rent3, average_rent
TEXT:32,rent1 = 500
TEXT:16,rent2 = 600
TEXT:16,rent3 = 400
TEXT:16,average_rent = rent1 + rent2 + rent3 / 3
COLOUR:STANDARD
TEXT:32,This example is supposed to work out the average of three rents. But
TEXT:16,precedence dictates that division is done first before addition. This
TEXT:16,means this program will work out the average of the rents incorrectly!

