13,420
edits
Changes
→INVESTIGATION 3: COMMAND SUBSTITUTION / MATH OPERATIONS
'''Math Operations'''
Since you do NOT have to declare the '''data-type''' of a variable (as opposed to compiled program<br>such as the C-programming language), numbers would be stored as '''text''' in variables.<br>Therefore, it is important to use the construct <span style="color:blue;font-family:courier;font-weight:bold">(( ))</span> to <u>convert</u><br> numbers (stored as ''text'') into '''numbers'''.
We will now learn how to use this construct in order to perform math operations for shell scripts.