Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
下面的表达式只返回整数值。I 变量 final 的值为 43,低于 expr 返回 21 而不是 21.5
class_X=$(( expr $final / 2))
expr $final / 2
回声 $class_X