Format Numbers
under review
Jesse McCabe
under review
David Bartholomew
Jesse advised something I didn't realize: #{{x}/{y}::format::currency} already works. To format with two decimal places.
J
Jesse McCabe
David Bartholomew: Can you think of any other formatting use cases?
David Bartholomew
Jesse McCabe: So far for me the default and currency are the two I really needed especially in docs and slides.
I could see possibility to format to one decimal, or perhaps an ability to round to a set number of decimals, but rare instances and don't have an example at this time.
#{{x}/{y}::format::percent} eg 3 / 4 =75%
#{{x}/.6667::format::round0} or ..::round1 where the response is rounded to no decimal, and 1 decimal respectively.
Just a few quick thoughts.
As I wrote above, this is something that lacks in docs and slides so including in docvars might prove very useful.