#2055 - Improve integer_format / INTEGER_FORMAT symbol

Identifier #2055
Issue type Feature request or suggestion
Title Improve integer_format / INTEGER_FORMAT symbol
Status Completed
Tags

Good for training (custom)

Handling member Chris Graham
Addon core
Description Add a parameter to integer_format to express in user-friendly standard-form.

E.g.

integer_format(1234,1)
-->
1.2k

integer_format(1234678,2)
-->
1.23m

integer_format(1234678,0)
-->
1m


Also make the INTEGER_FORMAT symbol be able to convert input already passed to integer_format back to a raw integer, so it can be re-processed (as often templates are often passed things having already been processed in a default way).


I think our default forumview has some hard-coded logic similar to above, so make that use the symbol.
Steps to reproduce

Funded? No
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".

Rating

Unrated