\define ragscalculator2(cnumb1,copera,cnumb2) <$list filter=[[$cnumb1$]$copera$[$cnumb2$]]><<currentTiddler>></$list> \end
<<ragscalculator2 (1st number) (math operator) (2nd number)>> ragscalculator2 : : macro name (1st number) : first number of your math equation (math operator) : the math operation you want preformed for + : use "add" for - : use "subtract" for x : use "multiply" for รท : use "divide" (2nd number) : second number of your math equation <<ragscalculator2 2 subtract 2>> produces just the solution to the equation/a number 0 Can be expanded for more numbers/equation steps and using the other math filter operators Tiddlywiki provides (abs, add, ceil, divide, exponential, fixed, floor, max, maxall, min, minall, multiply, negate, precision, product, remainder, round, sign, subtract, sum, trunc, untrunc) As with the calculator tiddler, the macro can be used with variables for input from other sources. <ragscalculator $(num1variable)$ $(operatorvariable)$ $(num2variable)$>> -- 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/e1b95e00-3d7a-4ad3-bdb1-fddc03aae9c0%40googlegroups.com.
math macro.tid
Description: Binary data

