11 | floating-point operation

Shell Scripting Tutorial

Hello Programmers, I’m Yash. Sole programmer at planetvearcity – a place where programmers come to learn, build, and grow.

Welcome to the tutorial series on shell scripting. In this video, we will learn how to perform floating-point operation operations. Normal commands which we use for performing arithmetic operation don’t work with floating-point.

In order to perform the floating-point operation, we will be making use of bc command. This command is a really powerful precision calculator.

We will be learning how to perform summation, subtraction, multiplication, division, modulo, square root, and also equality check.