Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

calculate float division

bc -l <<< '10/3' # Fast way
3.33333333333333333333
bc <<< 'scale=2; 10/3' #Define also how many decimals to take in scale
3.33
 
PREVIOUS NEXT
Tagged: #calculate #float #division
ADD COMMENT
Topic
Name
5+5 =