K
K
ksvdon2014-03-20 14:15:39
bash
ksvdon, 2014-03-20 14:15:39

How to do integer (of type integer) output with the bc utility in bash?

For example, I multiply the number 0.778 by 1000
and I get 778.000. How to disable this "precision"? You need an integer output like 778 and that's it.
I tried to prescribe scale=0; before the operation .. But it doesn’t look like that ...

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question