Template:%

From RimWorld Wiki
Revision as of 09:32, 24 April 2022 by Ickputzdirwech (talk | contribs) (Used)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Documentation icon Template documentation[view] [edit] [history] [purge]

Usage

This template can be used to convert numbers into percentages.

The template has two parameters:

  • The first parameter is the value that will be converted into a percentage and can be any number or expression. This parameter is mandatory.
  • The second parameter controls the number of digits after the decimal point and needs to be an integer. This parameter is optional.

Examples

{{%|0.357}} would produce: 35.7%

{{%|0.357|0}} would produce: 35.7%

{{%|{{Q|Barricade|Cover Effectiveness}}}} would produce: 55%

{{%|1-{{Q|Barricade|Cover Effectiveness}}}} would produce: -54%