Sum Calculator

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

Sum Calculator

Post by Debugger »

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: 4985
Joined: Thu Sep 03, 2009 6:48 pm

Re: Sum Calculator

Post by therube »

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: 630
Joined: Thu Jan 26, 2017 11:56 am

Re: Sum Calculator

Post by Debugger »

Errors: (...) it is not recognized as an internal or external command,
executable program or batch file
therube
Posts: 4985
Joined: Thu Sep 03, 2009 6:48 pm

Re: Sum Calculator

Post by therube »

You'll need, calc-2.11.10.1-bin.zip & units-1.87-dep.zip (contains readline5.dll, a needed dependency).
Debugger
Posts: 630
Joined: Thu Jan 26, 2017 11:56 am

Re: Sum Calculator

Post by Debugger »

I installed the executable file, but no change, the same error.
vsub
Posts: 474
Joined: Sat Nov 12, 2011 11:51 am

Re: Sum Calculator

Post by vsub »

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: 630
Joined: Thu Jan 26, 2017 11:56 am

Re: Sum Calculator

Post by Debugger »

And what is Autohotkey and how to use it?
Post Reply