Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #197696 > unrolled thread
| Started by | Ken Heard <kenslists@teksavvy.com> |
|---|---|
| First post | 2018-07-16 19:00 +0200 |
| Last post | 2018-07-23 16:50 +0200 |
| Articles | 6 on this page of 26 — 16 participants |
Back to article view | Back to linux.debian.user
Calculator with "tapes" Ken Heard <kenslists@teksavvy.com> - 2018-07-16 19:00 +0200
Re: Calculator with "tapes" Joe <joe@jretrading.com> - 2018-07-16 19:10 +0200
Re: Calculator with "tapes" Jude DaShiell <jdashiel@panix.com> - 2018-07-16 19:50 +0200
Re: Calculator with "tapes" Boyan Penkov <boyan.penkov@gmail.com> - 2018-07-16 19:20 +0200
Re: Calculator with "tapes" Nicholas Geovanis <nickgeovanis@gmail.com> - 2018-07-16 19:20 +0200
Re: Calculator with "tapes" Joe Pfeiffer <pfeiffer@cs.nmsu.edu> - 2018-07-16 19:50 +0200
Calculator with "tapes" "Thomas Schmitt" <scdbackup@gmx.net> - 2018-07-16 20:00 +0200
Re: Calculator with "tapes" Eric S Fraga <e.fraga@ucl.ac.uk> - 2018-07-16 23:10 +0200
Re: Calculator with "tapes" Ben Caradoc-Davies <ben@transient.nz> - 2018-07-17 02:00 +0200
Re: Calculator with "tapes" Zenaan Harkness <zenaan@freedbms.net> - 2018-07-17 02:20 +0200
Re: Calculator with "tapes" Stefan Krusche <linux@stefan-krusche.de> - 2018-07-17 03:10 +0200
Re: Calculator with "tapes" Curt <curty@free.fr> - 2018-07-17 11:20 +0200
Re: Calculator with "tapes" Stefan Krusche <linux@stefan-krusche.de> - 2018-07-17 12:40 +0200
Re: Calculator with "tapes" Curt <curty@free.fr> - 2018-07-17 13:40 +0200
Re: Calculator with "tapes" Stefan Krusche <linux@stefan-krusche.de> - 2018-07-17 14:30 +0200
Re: Calculator with "tapes" Curt <curty@free.fr> - 2018-07-17 14:50 +0200
Re: Calculator with "tapes" Greg Wooledge <wooledg@eeg.ccf.org> - 2018-07-17 15:00 +0200
Re: Calculator with "tapes" Zenaan Harkness <zenaan@freedbms.net> - 2018-07-23 04:30 +0200
Re: Calculator with "tapes" Curt <curty@free.fr> - 2018-07-23 09:30 +0200
Re: Calculator with "tapes" Stefan Krusche <linux@stefan-krusche.de> - 2018-07-23 13:10 +0200
Re: Calculator with "tapes" Stefan Krusche <linux@stefan-krusche.de> - 2018-07-23 13:20 +0200
Re: Calculator with "tapes" <tomas@tuxteam.de> - 2018-07-23 13:30 +0200
Re: Calculator with "tapes" Stefan Krusche <linux@stefan-krusche.de> - 2018-07-23 13:50 +0200
Re: Calculator with "tapes" <tomas@tuxteam.de> - 2018-07-23 13:30 +0200
Re: Calculator with "tapes" Piotr <zaxonxp45@gmail.com> - 2018-07-17 07:30 +0200
Re: Calculator with "tapes" John Darrah <xyllyx@gmail.com> - 2018-07-23 16:50 +0200
Page 2 of 2 — ← Prev page 1 [2]
| From | Stefan Krusche <linux@stefan-krusche.de> |
|---|---|
| Date | 2018-07-23 13:20 +0200 |
| Message-ID | <weH2F-7bA-1@gated-at.bofh.it> |
| In reply to | #197937 |
Am Montag 23 Juli 2018 schrieb Stefan Krusche: > Am Montag 23 Juli 2018 schrieb Zenaan Harkness: > > On Tue, Jul 17, 2018 at 03:04:41AM +0200, Stefan Krusche wrote: > > > Am Dienstag 17 Juli 2018 schrieb Zenaan Harkness: > > > > bc FTW - so quick, so handy > > > > > > > > First line I always run though is: > > > > scale=9 > > > > > > When you don't want to type this every time: > > > > > > $ cat ~/.bcrc > > > scale=3 > > > > OK, so I created ~/.bcrc, setting scale to 20: > > > > $ cat ~/.bcrc > > scale=20 > > > > BUT, when I run bc, I get: > > > > $ bc > > bc 1.06.95 > > Copyright 1991-1994, 1997, 1998, 2000, 2004, 2006 Free Software > > Foundation, Inc. > > This is free software with ABSOLUTELY NO WARRANTY. > > For details type `warranty'. > > scale > > 0 > > ^D > > > > What am I doing wrong here? The problem is probably solved with Curt's and Greg's answers, but still to answer your question: ~/.bcrc is not a default config file for bc (sorry, didn't think about having it created on my own when I wrote my previous post) and is only read if you have "BC_ENV_ARGS=~/.bcrc" in your environment or as an argument to bc on the command line. Kind regards, Stefan
[toc] | [prev] | [next] | [standalone]
| From | <tomas@tuxteam.de> |
|---|---|
| Date | 2018-07-23 13:30 +0200 |
| Message-ID | <weHcm-7f6-9@gated-at.bofh.it> |
| In reply to | #197938 |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Mon, Jul 23, 2018 at 01:19:44PM +0200, Stefan Krusche wrote: [...] > The problem is probably solved with Curt's and Greg's answers [...] > ~/.bcrc is not a default config file for bc [...] and is only read > if you have "BC_ENV_ARGS=~/.bcrc" in your environment [...] Ah, I see the solution is already there. Sorry for not paying attention Cheers - -- t -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAltVu2UACgkQBcgs9XrR2kbGsACcDNajv7oCDkeMnuYsPrGfb9tl +3kAnig/6E/hlz2XfYnuw7IJMme8VtXq =6sTA -----END PGP SIGNATURE-----
[toc] | [prev] | [next] | [standalone]
| From | Stefan Krusche <linux@stefan-krusche.de> |
|---|---|
| Date | 2018-07-23 13:50 +0200 |
| Message-ID | <weHvH-7me-1@gated-at.bofh.it> |
| In reply to | #197940 |
Am Montag 23 Juli 2018 schrieb tomas@tuxteam.de: > On Mon, Jul 23, 2018 at 01:19:44PM +0200, Stefan Krusche wrote: > > [...] > > > The problem is probably solved with Curt's and Greg's answers [...] > > ~/.bcrc is not a default config file for bc [...] and is only read > > if you have "BC_ENV_ARGS=~/.bcrc" in your environment [...] > > Ah, I see the solution is already there. Sorry for not paying attention Your're welcome. I often find more details just after I hit "send" ;-) Regards, Stefan > > Cheers > -- t
[toc] | [prev] | [next] | [standalone]
| From | <tomas@tuxteam.de> |
|---|---|
| Date | 2018-07-23 13:30 +0200 |
| Message-ID | <weHcm-7f6-13@gated-at.bofh.it> |
| In reply to | #197937 |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Mon, Jul 23, 2018 at 01:01:51PM +0200, Stefan Krusche wrote: [...] > > BUT, when I run bc, I get: > > > > $ bc > > bc 1.06.95 > > Copyright 1991-1994, 1997, 1998, 2000, 2004, 2006 Free Software > > Foundation, Inc. > > This is free software with ABSOLUTELY NO WARRANTY. > > For details type `warranty'. > > scale > > 0 > > ^D > > > > > > What am I doing wrong here? Hm. Same for me... > No idea... .bcrc saved? And readable? Sorry, can't help. > Stefan Note that there's no mention of .bcrc in bc's man page... Neither in bc's info page. Running under strace I only see it trying to access ~/.inputrc and ~/.terminfo. It seems you'll have to provide the init file explicitly on the command line -- or to set the BC_ENV_ARGS. This works for me: echo "scale=0" > .my-bc-init-file # choose a better name :-) BC_ENV_ARGS=.my-bc-init-file bc bc 1.06.95 Copyright 1991-1994, 1997, 1998, 2000, 2004, 2006 Free Software Foundation, Inc. This is free software with ABSOLUTELY NO WARRANTY. For details type `warranty'. scale 20 Season to taste :-) Cheers - -- tomás -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAltVuqEACgkQBcgs9XrR2kZ90ACdFSWyurNuwDZ5X78H/O2RIstZ gk0AnRI/UvFytcVqO6RxWuzTVJFARDp7 =3UHW -----END PGP SIGNATURE-----
[toc] | [prev] | [next] | [standalone]
| From | Piotr <zaxonxp45@gmail.com> |
|---|---|
| Date | 2018-07-17 07:30 +0200 |
| Message-ID | <wcqIF-4NU-1@gated-at.bofh.it> |
| In reply to | #197696 |
On Mon, 16 Jul 2018 12:57:58 -0400 Ken Heard <kenslists@teksavvy.com> wrote: > Does Debian have a calculator package which has the equivalent of the > tape produced by mechanical machines to show the entire calculation. I > find such "tapes" essential when for example I am adding a long list of > numbers and need to check after the addition is done to verify that all > the numbers were entered correctly. I use speedcrunch under X11 for this. speedcrunch/stable,now 0.12.0-1 i386 [installed] High precision calculator Regards, Piotr
[toc] | [prev] | [next] | [standalone]
| From | John Darrah <xyllyx@gmail.com> |
|---|---|
| Date | 2018-07-23 16:50 +0200 |
| Message-ID | <weKjU-Nl-3@gated-at.bofh.it> |
| In reply to | #197696 |
On Mon, Jul 16, 2018 at 09:59:10AM -0700, Ken Heard wrote: > Does Debian have a calculator package which has the equivalent of the tape > produced by mechanical machines to show the entire calculation. I find such > "tapes" essential when for example I am adding a long list of numbers and > need to check after the addition is done to verify that all the numbers were > entered correctly. > > Regards, Ken > I believe that "apcalc" is something you should look at. It has a nice command line history similar to using bash nd you can review your work by just typing "less .calc_history". -- john
[toc] | [prev] | [standalone]
Page 2 of 2 — ← Prev page 1 [2]
Back to top | Article view | linux.debian.user
csiph-web