Differences between version 2 and previous revision of BcNotes.
Other diffs: Previous Major Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 2 | Last edited on Wednesday, February 14, 2007 7:02:22 pm | by AlastairPorter | Revert |
Older page: | version 1 | Last edited on Wednesday, February 14, 2007 10:31:47 am | by BenStaz | Revert |
@@ -1,7 +1,12 @@
+Notes for the bc(1) arbitrary precision calculator
+----
+
!Handy Variables
scale - scale defines how some operations use digits after the decimal point . (Default 0)
So if you type ''5/5'' ''bc'' interprets this as 5.00000/5.00000. and the answer is 1.00000
last - is a variable that has the value of the last printed number.
So if you have a running total in ''bc'' of 100, then last+10 would result in 110.
+----
+CategoryNotes