Thousands seperator with plugin "letfilter" (let:sum)

133 views
Skip to first unread message

Marcus

unread,
Dec 19, 2017, 11:55:59 AM12/19/17
to TiddlyWiki
Hello everybody,

is it possible with the Plugin "letfilter" to format numbers with a thousands seperator?

Like this: 1.234 or 10.000

<$list filter="[let:SUM test[]]">


Or any other way?

Thanks in adcance.

Evan Balster

unread,
Dec 19, 2017, 4:21:16 PM12/19/17
to TiddlyWiki
Hey, Marcus —

I'm thinking about adding some nicer number formatting options in my formula plugin, which is similar in purpose to the let operator and in active development:  https://evanbalster.com/tiddlywiki/formulas.html

If this interests you, I recommend opening an issue on the GitHub:  https://github.com/EvanBalster/TiddlyWikiFormula/issues
And/or replying in the groups topic here:  https://groups.google.com/forum/#!topic/tiddlywiki/bfInUWhAtzo

Thomas Elmiger

unread,
Dec 20, 2017, 12:25:15 PM12/20/17
to TiddlyWiki
Hi Marcus

My simple math plugin RPN can do number formatting, see the usage tab here:

https://tid.li/tw5/plugins.html#%24%3A%2Fplugins%2Ftelmiger%2Frpn

Happy formatting!
Thomas

Marcus

unread,
Dec 20, 2017, 5:59:48 PM12/20/17
to TiddlyWiki

Hi Thomas,

thank you.

But how can I sum the values from many tiddlers like:  <$list filter="[let:SUM test[]]">  with RPN ?

Thomas Elmiger

unread,
Dec 21, 2017, 2:12:32 AM12/21/17
to TiddlyWiki
Hi Marcus,

You are right, RPN cannot do that, you would have to calculate first, save the result in a variable or field and dislay it with RPN from there.

All the best,
Thomas

Tobias Beer

unread,
Dec 21, 2017, 2:51:51 AM12/21/17
to tiddl...@googlegroups.com
Hi Marcus,

While it may still have its use, http://let.tiddlyspot.com has been practically abandoned in its beta state ever since its inception.

While I could possibly extend it, if you keep pushing hard,
I do recommend I recommend you focus on alternatives, such as:
However, I didn't actually look into whether or how either of those
provides a way to implement your desired separators right now. ;-)

I would also think you may actually want a new filter for that, e.g.

[[100000]thousands[.]]

But, if you do that, you may then also want this variant:

[[100.000]thousands:remove[.]]

best -tb

Marcus

unread,
Dec 21, 2017, 5:32:10 AM12/21/17
to TiddlyWiki
Hi everybody,

many thanky for your fast answers.

The plugin https://evanbalster.com/tiddlywiki/formulas.html  works fine to sum up the values:

(= sum([all[]get[value]]) =)


Is there any idea how to format that with thousand seperator?

I did not manage it in combination with
Thomas Elmiger's "RPN".

Thanky for all.

Marcus

unread,
Dec 21, 2017, 7:16:27 AM12/21/17
to TiddlyWiki
OK, I got it together with:
https://evanbalster.com/tiddlywiki/formulas.html
and
https://tid.li/tw5/plugins.html#%24%3A%2Fplugins%2Ftelmiger%2Frpn

Like this:

<$set name="test" value="(= sum([all[]get[value]]) =)">
<$macrocall $name="rpn" a=<<test>> b=1 operation="*" decimals="0" precision="p" locale="st"/>€


Thanks all for the great support :-)

Reply all
Reply to author
Forward
0 new messages