table 7-1. arithmetic operators(表7-1算术操作符)
example name result
$a + $b addition sum of $a and $b.?/font>
$a - $b subtraction remainder of $b subtracted from $a.?/font>
$a * $b multiplication product of $a and $b.?/font>
$a / $b division dividend of $a and $b.?/font>
$a % $b modulus remainder of $a divided by $b.
其中,除法操作符“/”返回一个整数值(整数除法的结果)如果两个操作数是整数(或者是被转化成整数的字符串)的话。如果任意一个操作数是浮点数,那么将进行浮点运算。
