Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

sum decimals bash

a=1.25
b=3.49
sum=$(echo "scale=2; "$a"+"$b| bc -l) #scale defines number of decimals
4.74
Comment

PREVIOUS NEXT
Code Example
Shell :: find a file in linux terminal 
Shell :: instalacion de angular cli 
Shell :: create a virtual environment python 3.8 
Shell :: ubuntu empty a file 
Shell :: libnss3.so: cannot open shared object file: No such file or directory 
Shell :: remove old version of node and install new 
Shell :: git push -u origin master 
Shell :: ecto migration 
Shell :: linux get ip by domain 
Shell :: kill port mac terminal 
Shell :: visual studio code update git password 
Shell :: video editor linux 
Shell :: array length bash 
Shell :: heroku rebuild without push 
Shell :: uuntu free port from use 
Shell :: git get repo with composer 
Shell :: how to install sublime text in kali linux 
Shell :: install openssl 1.0.2 
Shell :: uninstall node using n 
Shell :: yarn add @materialui 
Shell :: linux && 
Shell :: docker sudo how to add user 
Shell :: install golang 
Shell :: gnome files command 
Shell :: flutter add dependency command line 
Shell :: centos install copmposer 
Shell :: git unadd all files 
Shell :: sudo: effective uid is not 0 
Shell :: ubuntu 18.04 default display manager 
Shell :: apt install slack 
ADD CONTENT
Topic
Content
Source link
Name
3+4 =