Ruby算术符优先级: PEMDAS(Parentheses Exponents Multiplication Division Addition Subtraction) Ruby的取模运算(%)能作用于浮点数(2.5 % 0.5 = 0)。