Although Bash is a scripting language, it has pretty much all the capabilities of a general purpose programming language. This includes arithmetic functions.
www.google.com.tw