This is neat. The lack of any kind of ability to do basic arithmetic is the biggest hindrance I've had so far in TW5. I rolled my own solution but it is not without its own shortcomings.
You can probably add support for % (modulus) without too much trouble. Will give this a go next time I have the time to fiddle with my TW5 project. Bookmarked. Saq On Saturday, July 1, 2017 at 11:16:55 PM UTC+2, Thomas Elmiger wrote: > > Hi again! > > I. DID. IT. > > After the most serious grinding of my most powerful gray cells alongside > the less powerful ones I can announce the *public beta of the universal > elegant lightweight calculation macro rpn *which offers (nearly) > everything a power user like legendary Mat with the hat <:-) could desire. > > * decimals that can be forced to show trailing zeros > * integrated wikification of operands (!!!) > > To accomplish the second, I studied the great, long and complicated lesson > by Andreas Hahn here: > > https://groups.google.com/forum/?hl=de#!searchin/tiddlywikidev/parse$20a$20value$20using$20javascript%7Csort:relevance/tiddlywikidev/S5WuvbEPvvQ/Q__AI90O1o8J > > as well as the internals of the ingenious wikify widget on tiddlywiki.com > <http://tiddlywiki.com/#WikifyWidget>. > > The result can be tested on the address mentioned before: > https://tid.li/tw5/plugins.html#rpn%20%E2%80%93%20Basic%20Math%20in%20Reverse%20Polish%20Notation > > So get a fresh copy and enjoy calculating. *As always: make a backup > first,* use at your own risk. Feedback highly appreciated. > > Cheers, Thomas > -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/4de655b6-349e-4be9-8c76-726ab24a141e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.