Jump to content

Recommended Posts

wa4chq

Greeting's all.....  I was wondering if anyone else uses bc.  I don't use it all the time but I will if the Android phone isn't nearby.  Apparently bc can do more than basic calculations, which is all I use it for.  I just find it handy.   Have a great week!

bc_ss.jpg

Link to post
Share on other sites
securitybreach

Yeah, I have used bc for years anytime that I need to calculate something.

Link to post
Share on other sites
V.T. Eric Layton

What's bc?

 

Evidently, I've never used it. ;)

Link to post
Share on other sites
saturnian

I don't use it. I knew about, and I tried a few calculations back when I first learned about it, back when I was new to Linux.

 

I was surprised that the command was not found when I tried it Debian Testing, so I installed it just now. Looks like it could come in handy.

 

However, I use cal all the time! I prefer that command over any GUI calendar. Weird, cal isn't highlighting the current date (in Bullseye, at least). For that, ncal -C works. I don't do a lot with cal; usually I just run cal -3 (or ncal -C3).

Link to post
Share on other sites
securitybreach
1 hour ago, V.T. Eric Layton said:

Ah... no. I've never used it. I use galculator. ;)

 

At least try it. It works very well, especially if you are already in a terminal.

  • +1 1
Link to post
Share on other sites
saturnian

I like galculator, too.

 

A few simple calculations with bc:

 

$ bc
bc 1.07.1
Copyright 1991-1994, 1997, 1998, 2000, 2004, 2006, 2008, 2012-2017 Free Software Foundation, Inc.
This is free software with ABSOLUTELY NO WARRANTY.
For details type `warranty'.
3^3
27
3^3-9
18
3^3-9+18
36
(3^3-9+18)/3
12
quit

 

  • +1 1
Link to post
Share on other sites
saturnian

These days, I don't use a calculator for much, just some rather simple calculations. On systems where a DE is present, the default calculator app is usually fine. Otherwise, especially for Openbox and Fluxbox, I like to go with Galculator.

 

For kicks, I created a launcher for bc in Bullseye GNOME. This command starts bc in gnome-terminal:

 

gnome-terminal -- bc

 

So, here's my ~/.local/share/applications/bc.desktop file:

 

[Desktop Entry]
    Name=bc
    Exec=gnome-terminal -- bc
    Icon=org.gnome.Terminal
    Type=Application
    Categories=GTK;GNOME;Utility;

 

Link to post
Share on other sites
wa4chq
19 hours ago, securitybreach said:

Unix calculator

Not to be confused with a Eunuch's calculator.

 

  • Haha 2
Link to post
Share on other sites
wa4chq
19 hours ago, saturnian said:

 

Quote

However, I use cal all the time! I prefer that command over any GUI calendar. Weird, cal isn't highlighting the current date (in Bullseye, at least). For that, ncal -C works. I don't do a lot with cal; usually I just run cal -3 (or ncal -C3).

I use cal too.... like bc, very handy.

 

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...