Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

bash float operation

bc -l <<< '10/3' # Fast way
3.33333333333333333333
bc <<< 'scale=2; 10/3' #Define also how many decimals to take in scale
3.33
Comment

bash float

bc <<< '0.3333+0.6666' # Get sum of floats in bash.
0.99			#Same for Substraction and Multiplication
bc -l <<< '10/3' # Fast way to get division
3.33333333333333333333
bc <<< 'scale=2; 10/3' #Define also how many decimals to take in scale
3.33
Comment

PREVIOUS NEXT
Code Example
Shell :: how to install terraform macos 
Shell :: check and verify git version 
Shell :: hopw to run the react-scripts command? 
Shell :: install slack ubuntu/linux 
Shell :: chrome download for linux 
Shell :: delete all merged branches 
Shell :: upgrade docker compose windows 
Shell :: composer install no dev 
Shell :: conda install camelot py 
Shell :: install vue-material 
Shell :: how to see mac address linux 
Shell :: download google drive file ubuntu 
Shell :: install mariadb 10.2 ubuntu 16.04 
Shell :: how to pull the changes from git without staging local changes 
Shell :: how to add numbers in linux command line shell 
Shell :: push new branch to remote 
Shell :: ignore commited files 
Shell :: how to change default crontab editor 
Shell :: youtube-dl uninstall mac 
Shell :: how to setup display xServer wsl win10 
Shell :: how to install sublime text 3 on ubuntu 20.04 
Shell :: bash print binary file 
Shell :: default pem file permissions 
Shell :: windows install httpie 
Shell :: how to install linux headers on arch 
Shell :: ansible lineinfile 
Shell :: linux get lines in file 
Shell :: linux kill a port 
Shell :: git stash abort 
Shell :: wget save file with different name 
ADD CONTENT
Topic
Content
Source link
Name
1+8 =