What is the result of giving bc -l command?
Answers
Answered by
2
Answer:
am trying to do simple calculation using bc command in linux. Once i want the value with all the decimal places. other time i want only the integer part
Want to get with full decimal places
$ echo "scale=10; ((900/1303) * 928)/600" | bc
1.0683039140
Now i want to get only the 1 (integer) part here omitiing the decimal part SO i try
$ echo "scale=0; ((900/1303) * 928)/600" | bc
0
How its showing Zero. It should show 1 instead
Can someone help. I dont want to extract the interger part using awk or sed in this case
Answered by
3
Answer:
bc-l command evaluate the expression prints and the result of operations system.
Similar questions