BOTH THIS MACRO AND SIMPLE EQUATION MACRO CAN ACCEPT NEGATIVE NUMBERS
just type -number, ie: -1

FIX FOR DISPLAY ISSUE:

math macro for multiple add, subtract, etc as detailed in the official 
examples of the math operators

x - [=1 =2 =3 =4 +[add[4]]

x - 5678


z - <<ragscalculator3 "=1 =2 =3 =4" add 4>>


without delimiter marks:
ragscalculator3 - 5678


with delimiter marks:
ragscalculator3separate - 5 | 6 | 7 | 8 |


list:
ragscalculator3list - 

5

6

7

8


\define ragscalculator3(cnumbm1,coperam,cnumbm2)
<$list filter="$cnumbm1$ +[$coperam$[$cnumbm2$]]"><<currentTiddler>></$list>
\end
\define ragscalculator3separate(cnumbm1,coperam,cnumbm2)
<$list filter="$cnumbm1$ +[$coperam$[$cnumbm2$]]"> <<currentTiddler>> |</$list>
\end
\define ragscalculator3list(cnumbm1,coperam,cnumbm2)
<$list filter="$cnumbm1$ +[$coperam$[$cnumbm2$]]">

<<currentTiddler>></$list>
\end

<<ragscalculator3 "cnumbm1" coperam cnumbm2 >>
<<ragscalculator3separate "cnumbm1" coperam cnumbm2 >>
<<ragscalculator3list "cnumbm1" coperam cnumbm2 >>

<<ragscalculator3 "=1 =2 =3 =4" add 4>>
<<ragscalculator3seperate "=1 =2 =3 =4" add 4>>
<<ragscalculator3list "=1 =2 =3 =4" add 4>>


ragscalculator3 : macro name cnumbm1 : a series of numbers to have the 
final number of the macro added, etc to each, use "-number" for negative 
numbers

— must be in " ", each number should have an "=" before it 

coperam : the math operation you want preformed

for + : use "add" 

for - : use "subtract" 

for x : use "multiply" 

for ÷ : use "divide" 

cnumbm2: single number to be added to each of the cnumbm1 numbers


ATTACHMENT FOR TWSCRIPTS

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/0d732b46-9ec4-4c07-8788-301d2eb24773%40googlegroups.com.

Attachment: math macro string of values.tid
Description: Binary data

Reply via email to