Sum Calculator

Off-topic posts of interest to the "Everything" community.
Post Reply
Debugger
Posts: 530
Joined: Thu Jan 26, 2017 11:56 am

Sum Calculator

Post by Debugger » Sat Jun 29, 2019 9:48 am

I am looking for a calculator that can calculate/sum many numbers in a multiline?

Example:
74-62=
72-28=
21-54=
66-40=
42-39=
67-36=
68-25=
71-24=
73-61=
09-13=

therube
Posts: 2309
Joined: Thu Sep 03, 2009 6:48 pm

Re: Sum Calculator

Post by therube » Sun Jun 30, 2019 9:47 am

You'll need to lose the = & it doesn't like the leading 0 in 09, otherwise...

Code: Select all

C:\TMP\SEA\sed>\bin\unix\cat  calcset
74-62
72-28
21-54
66-40
42-39
67-36
68-25
71-24
73-61
09-13
C:\TMP\SEA\sed>calc  -f calcset
        12
        44
        -33
        26
        3
        31
        43
        47
        12
"./calcset", line 10: Badly formatted number
Error in commands

C:\TMP\SEA\sed>calc 9-13
        -4

C:\TMP\SEA\sed>

Debugger
Posts: 530
Joined: Thu Jan 26, 2017 11:56 am

Re: Sum Calculator

Post by Debugger » Sun Jun 30, 2019 2:41 pm

Errors: (...) it is not recognized as an internal or external command,
executable program or batch file

therube
Posts: 2309
Joined: Thu Sep 03, 2009 6:48 pm

Re: Sum Calculator

Post by therube » Sun Jun 30, 2019 3:12 pm

You'll need, calc-2.11.10.1-bin.zip & units-1.87-dep.zip (contains readline5.dll, a needed dependency).

Debugger
Posts: 530
Joined: Thu Jan 26, 2017 11:56 am

Re: Sum Calculator

Post by Debugger » Mon Jul 01, 2019 10:43 am

I installed the executable file, but no change, the same error.

vsub
Posts: 265
Joined: Sat Nov 12, 2011 11:51 am

Re: Sum Calculator

Post by vsub » Mon Jul 01, 2019 2:36 pm

Autohotkey and the windows calculator

Code: Select all

Loop,parse,clipboard,`n
{
If A_LoopField =
break
Calc .= SubStr(A_LoopField,1,-2) "+"
}
Calc := SubStr(Calc,1,-1) "="
Clipboard := calc
Run,Calc
WinWaitActive,Calculator
Sleep,500
Send,^v
ExitApp
Copy the numbers from your post and run the script

Debugger
Posts: 530
Joined: Thu Jan 26, 2017 11:56 am

Re: Sum Calculator

Post by Debugger » Mon Jul 01, 2019 2:46 pm

And what is Autohotkey and how to use it?

Post Reply