Kurzbeschreibung Gnu BC - Basic Calculator / Short Description Gnu BC - Basic Calculator DE/EN

in deutsch •  4 years ago 
Kurzbeschreibung Gnu BC - Basic Calculator / Short Description Gnu BC - Basic Calculator DE/EN

(English Below / Englisch unten)

Kurzbeschreibung Gnu BC - Basic Calculator
bc ist ein Rechenprogramm das ich auf der Kommandozeile besonders praktisch finde.

Es sollte fuer die meisten Linux Systeme erhaeltlich sein. Bei Debian ist es
üblicherweise in der Basisinstallation enthalten.
Gestartet wird das Programm durch Eingabe von

bc

z.b in einem xterm Fenster.
Wenn man nun z.b

100 / 33

eingibt wird "3" als Ergebniss angezeigt. Standartmässig zeigt bc
das Ergebniss ohne Nachkommastellen an. Das kann man durch Eingabe von

scale = 20

ändern. Jetzt werden die Ergebnisse bis auf 20 Nachkommastellen angezeigt.
Um beim Beispiel zu bleiben, die neuerliche Eingabe von

100 / 33

bringt nun

3.0303030......

Ich habe nicht gefunden wo die grenze fuer die Anzahl der möglichen
Nachkommastellen liegt. Es sind aber viele....

Einfache Klammern werden verwendet wie man sie normalerweise Schreibt.

(0.00000001 * 36000) * 928

Ergibt 0.33408000
Um das Programm zu Verlassen einfach

quit

Eingeben. "exit" mag er nicht

Wenn man den Wikipedia Artikel ueber "bc" bzw "Gnu bc" liest dann steckt
in dem Program einiges mehr als ich je nutzen werde.



......

Short description Gnu BC - Basic Calculator

bc is a calculation program that I find particularly useful on the command line

It should be available for most Linux systems. On Debian Systems it is
usually included in the basic installation.
The program is started by entering

bc

in an xterm window.
If you now enter:

100/33

"3" will be displayed as the result. Standard shows bc
the result without decimal places. You can change this by entering

scale = 20

To change. The results are now displayed up to 20 decimal places.
To stay with the example, re-entering

100/33

shows now
3.0303030 ......
I have not found where the limit for the number of possible
ls located after the decimal point. But there are many ...

Simple brackets are used as they are normally written.

(0.00000001 * 36000) * 928

Returns 0.33408000

To exit the program type

quit

and Enter. He doesn't like "exit"

If you read the Wikipedia article about "bc" or "Gnu bc" it seems that
the program has lot more features than I will ever use.

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  
Loading...