~ubuntu-branches/debian/sid/bc/sid

« back to all changes in this revision

Viewing changes to doc/bc.1

  • Committer: Bazaar Package Importer
  • Author(s): Francois Marier
  • Date: 2009-04-16 10:23:39 UTC
  • Revision ID: james.westby@ubuntu.com-20090416102339-l7970sr667eekbvw
Tags: 1.06.94-3.1
* Non-maintainer upload with John's permission.
* Apply patch to restore the .dcrc config file (closes: #472250)
* Merge patch from Ubuntu to notice read and write errors on
  input and output (closes: #488735)
* Include the bc manual (HTML) in the bc binary package

* Bump Standards Version to 3.8.1
* Bump debhelper compatibility to 7
* debian/rules: replace "dh_clean -k" with "dh_prep"
* debian/control: Add homepage field
* Fix hyphens in the bc and dc manpages
* Add a watch file
* debian/dc.doc-base: Remove leading whitespace
* debian/dc.doc-base: Move to section Science/Mathematics

Show diffs side-by-side

added added

removed removed

Lines of Context:
545
545
variable \fBpi\fR.
546
546
.RS
547
547
\f(CW
548
 
pi=$(echo "scale=10; 4*a(1)" | bc -l)
 
548
pi=$(echo "scale=10; 4*a(1)" | bc \-l)
549
549
\fR
550
550
.RE
551
551
.PP
567
567
  /* Check the sign of x. */
568
568
  if (x<0) {
569
569
    m = 1
570
 
    x = -x
 
570
    x = \-x
571
571
  } 
572
572
 
573
573
  /* Precondition x. */
643
643
to \fBbc\fR.  It also allows for a history of previous lines typed.
644
644
When this option is selected, \fBbc\fR has one more special variable.
645
645
This special variable, \fBhistory\fR is the number of lines of history
646
 
retained.  For \fBreadline\fR, a value of -1 means that an unlimited
 
646
retained.  For \fBreadline\fR, a value of \-1 means that an unlimited
647
647
number of history lines are retained.  Setting the value of
648
648
\fBhistory\fR to a positive number restricts the number of history
649
649
lines to the number given.  The value of 0 disables the history
660
660
It is not implemented in the traditional way using
661
661
.I dc(1).
662
662
This version is a single process which parses and runs a byte code
663
 
translation of the program.  There is an "undocumented" option (-c)
 
663
translation of the program.  There is an "undocumented" option (\-c)
664
664
that causes the program to output the byte code to
665
665
the standard output instead of running it.  It was mainly used for
666
666
debugging the parser and preparing the math library.
718
718
the limits statement to see if the installed version supports them.  If
719
719
it does support the "old style" assignment operators, the statement
720
720
"a =- 1" will decrement \fBa\fR by 1 instead of setting \fBa\fR to the
721
 
value -1.
 
721
value \-1.
722
722
.IP "spaces in numbers"
723
723
Other implementations of \fBbc\fR allow spaces in numbers.  For example,
724
724
"x=1 3" would assign the value 13 to the variable x.  The same statement