Questions tagged [calculator]
The calculator tag has no summary.
                37 questions
            
            
            
                -2
            
            votes
        
        
            
                2
            
            answers
        
        
            
                218
            
            views
        
        
            
            
            
        How to make bc handle explicitly positive numbers? Or what alternative calculator can be used with such support?
                    Consider the following:
$ echo "-1" | bc
-1
$ echo "(1)" | bc
1
$ echo "+1" | bc
(standard_in) 1: syntax error
Minus sign and round braces are handled correctly but ...
                
            
       
        
            
                -1
            
            votes
        
        
            
                1
            
            answer
        
        
            
                192
            
            views
        
        
            
            
        SpeedCrunch is Providing Slow Math Calculations
                    I'm having a performance issue with SpeedCrunch 0.12 in Debian 12:
sudo apt install speedcrunch
First of all, I love the UI of SpeedCrunch, as a calculator, but currently (for me) it is giving very ...
                
            
       
        
            
                0
            
            votes
        
        
            
                0
            
            answers
        
        
            
                62
            
            views
        
        
            
            
        After cpu time hits 8128 seconds my calculations stops
                    I'm new to Linux and for my bachelor thesis I'm using it in order to calculate properties of materials in physics, therefore heavy calculations are involved. I've noticed that whenever Cpu time hits ...
                
            
       
        
            
                0
            
            votes
        
        
            
                1
            
            answer
        
        
            
                93
            
            views
        
        
            
            
            
        Bash script to calculate within a CSV with or without zero
                    I have a script here that I am working with.
I would now like to expand this.
POSIXLY_CORRECT=1 awk -F ';' -v OFS=';' '
  {print $0, NR == 1 ? "Price" : $1 ? $1 : $3 * 1.2}' < file.csv
...
                
            
       
        
            
                1
            
            vote
        
        
            
                1
            
            answer
        
        
            
                472
            
            views
        
        
            
            
        evaluate terms in zsh without a command
                    I am using zsh with the prezto configuration framework. I want to be able to type in terms like 1 + 2 * (3 / 4) and get "2.5" out of it.
Those terms could be recognized because they only ...
                
            
       
        
            
                -1
            
            votes
        
        
            
                1
            
            answer
        
        
            
                570
            
            views
        
        
            
            
            
        How to round to the correct nearest number in Linux bc?
                    How do we round to the correct nearest number in a Linux basic calculator BC?
                
            
       
        
            
                0
            
            votes
        
        
            
                1
            
            answer
        
        
            
                148
            
            views
        
        
            
            
        Debian on TI-Nspire
                    I am following this tutorial: https://ivoah.net/blog/2016/03/20/how-to-install-debian-on-a-ti-nspire/ (I have all of the required items.)
I am using an Acer Chromebook C720, which I dual-booted Debian ...
                
            
       
        
            
                0
            
            votes
        
        
            
                0
            
            answers
        
        
            
                63
            
            views
        
        
            
        Why does wcalc output rounding symbol (~=) for integer operations (subtraction)?
                    I have noted, that man wcalc says:
       --ints
           Toggles whether long integers will be abbreviated or not.  This  conflicts  with  engineering
           notation for large numbers, but ...
                
            
       
        
            
                2
            
            votes
        
        
            
                2
            
            answers
        
        
            
                839
            
            views
        
        
            
            
            
        Calculations in shell Unix
                    I'm trying to work out the difference in 2 unix times to do a simple calculation (in a shell script) but it doesn't seem to work.
I have set 2 variables one called $d and the other $c.
Here's the ...
                
            
       
        
            
                -1
            
            votes
        
        
            
                1
            
            answer
        
        
            
                793
            
            views
        
        
            
            
        How can i check if a number is higher or lower then another number?
                    I have files that contain 2 numbers like the following:
File 1
1
0
File 2
0
1
File 3
3
3
I want to compare the number on the first line to the number on the second line.
If the number on the first ...
                
            
       
        
            
                2
            
            votes
        
        
            
                1
            
            answer
        
        
            
                694
            
            views
        
        
            
            
        Gnome's calculator: "Malformed expression"
                    I can't calculate a simple math expression 1.3e4 * 10 in the Gnome's calculator in scientific mode, I just get "Malformed expression" warning below the number pane. What am I supposed to do?
                
            
       
        
            
                74
            
            votes
        
        
            
                21
            
            answers
        
        
            
                122k
            
            views
        
        
            
            
            
        Simple command-line calculator
                    Issue:
Every now and then I need to do simple arithmetic in a command-line environment.  E.G. given the following output:
Disk /dev/sdb: 256GB
Sector size (logical/physical): 512B/512B
Partition Table:...
                
            
       
        
            
                2
            
            votes
        
        
            
                1
            
            answer
        
        
            
                86
            
            views
        
        
            
            
            
        Financial calculations without floating point numbers in console?
                    I need to do simple financial calculations on Linux and had been using wcalc for this until I stumbled upon a wrong result caused by floating-point number issues. Is there a calculator (I really would ...
                
            
       
        
            
                2
            
            votes
        
        
            
                1
            
            answer
        
        
            
                171
            
            views
        
        
            
            
            
        How to call a function from wcalc?
                    wcalc has built in constants in functions.
I'm trying to call the abs function.
If I input
wcalc abs(-2)
I get
 syntax error
 = -2
Unless I enter interactive mode where it works.
                
            
       
        
            
                5
            
            votes
        
        
            
                4
            
            answers
        
        
            
                3k
            
            views
        
        
            
            
        currency conversion calculator in debian
                    sometime back I saw a calculator with currency conversion built-in with an option to update to current rates if so desired. Does anybody know what I'm talking about ? Saw it in debian.
                
            
       
         
         
         
         
        