Grid2

Grid2

11M Downloads

Add decimals to Percent Format

Heimidall opened this issue ยท 2 comments

commented

I would like to know if it is possible to add decimals to the percentage text format.
I was looking for information but was not able to find anything about whether this is possible or not.

Thanks in advance
image

commented

Thanks! It worked

commented

Not possible using the standard configuration, but it's possible changing the format in the configuration, typing into chat something like (you need to reload the ui to apply the changes):

-- display 1 decimal
/script Grid2.db.profile.formatting.percentFormat="%.1f%%"

-- display 2 decimals
/script Grid2.db.profile.formatting.percentFormat="%.2f%%"

-- display 1 decimal, and the percent symbol removed
/script Grid2.db.profile.formatting.percentFormat="%.1f"