OT: bc
Jean-Pierre A. Radley
appl at jpr.com
Fri Jan 20 13:37:00 PST 2006
John Esak propounded (on Fri, Jan 20, 2006 at 08:07:31AM -0500):
| Does anyone know how to set "bc" to calculate the same way filePro does.
| With respoect to rounding that is.
|
| filePro will give 15.36 as the value for:
|
| aa(10,.2)="102.39" * ".15"
|
| and no matter what I do, bc gives 15.35 to the same mulitplication. I've set
| precision equal to 2, 4, 9, doesn't matter. If the precision goes up, it
| just goes up without rounding. If it goes lower down to 2, it truncates. Any
| way to have it not truncate but round?
|
| I like to check figures in filePro with bc and it's impossible. I've scanned
| the man page, of course, but didn't see anything about rounding.
Doesn't your 'bc' man page say what mine does, i.e.:
In every case where digits are discarded truncation is performed
without rounding.
--
JP
==> http://www.frappr.com/cusm <==
More information about the Filepro-list
mailing list