Frantisek Kluknavsky 12f199f
diff -up wrk/doc/bc.1.wrk wrk/doc/bc.1
Frantisek Kluknavsky 12f199f
--- wrk/doc/bc.1.wrk	2013-10-02 13:36:52.066295450 +0200
Frantisek Kluknavsky 12f199f
+++ wrk/doc/bc.1	2013-10-02 13:35:22.738553712 +0200
Frantisek Kluknavsky 12f199f
@@ -174,6 +174,8 @@ The result of the expression is the sum
Frantisek Kluknavsky 12f199f
 The result of the expression is the difference of the two expressions.
Frantisek Kluknavsky 12f199f
 .IP "expr * expr"
Frantisek Kluknavsky 12f199f
 The result of the expression is the product of the two expressions.
Frantisek Kluknavsky 12f199f
+If a and b are the scales of the two expressions, then the scale of the result is:
Frantisek Kluknavsky 12f199f
+min(a+b,max(scale,a,b))
Frantisek Kluknavsky 12f199f
 .IP "expr / expr"
Frantisek Kluknavsky 12f199f
 The result of the expression is the quotient of the two expressions.
Frantisek Kluknavsky 12f199f
 The scale of the result is the value of the variable \fBscale\fR.
Frantisek Kluknavsky 12f199f
diff -up wrk/doc/bc.texi.wrk wrk/doc/bc.texi
Frantisek Kluknavsky 12f199f
--- wrk/doc/bc.texi.wrk	2013-10-02 13:17:01.743765518 +0200
Frantisek Kluknavsky 12f199f
+++ wrk/doc/bc.texi	2013-10-02 13:21:04.479870656 +0200
Frantisek Kluknavsky 12f199f
@@ -290,6 +290,8 @@ The result of the expression is the diff
Frantisek Kluknavsky 12f199f
 
Frantisek Kluknavsky 12f199f
 @item expr * expr
Frantisek Kluknavsky 12f199f
 The result of the expression is the product of the two expressions.
Frantisek Kluknavsky 12f199f
+If a and b are the scales of the two expressions, then the scale of the result is:
Frantisek Kluknavsky 12f199f
+min(a+b,max(@var{scale},a,b))
Frantisek Kluknavsky 12f199f
 
Frantisek Kluknavsky 12f199f
 @item expr / expr
Frantisek Kluknavsky 12f199f
 The result of the expression is the quotient of the two expressions.