Hi,
I'm not 100% sure I follow your last post.
We aren't using echo to "skim the output" here - we're giving `bc` an expression to evaluate, and telling it at what scale to do the evaluation.
About "float" or not.. Perhaps consulting the `bc` man page, near the beginning, in the section titled "NUMBERS", would answer your question about floats? I can't provide anything further than what it says there. But I believe using 'scale' is the way to achieve what you want as far as output. Does it make internal calculations any faster? I don't know, but I don't think so. A snippet from my bc (version 1.06.95) man page:
Code:
All numbers are represented internally in decimal and all computation is done in decimal.
This version truncates results from divide and multiply operations.
It is the second line which makes me suspect that 'scale' does not make calculations any faster, because to me, this line says bc is merely truncating the results of computations resulting in more places after the decimal than we want. Heh, 'scale' might even make it take longer
Sorry if I haven't quite answered your question; maybe someone else will have more to add.
Good luck!