Template:Coin/doc

Template for showing prices.

Usage
There are 2 API styles:

Style A:

e.g.  means 1 Gold 30 Copper.

Style B:

all are optional.

e.g.  means 1 Gold 25 Silver. e.g.  means 1 Gold 30 Silver.

Other parameters:

round rounded digits, default is 2.

Note

 * This template is table sorting friendly(need  in header). See example table above.
 * It is only designed for positive numbers, input negative values may result in unexpected results.
 * Due to the internal binary representation, decimal fractions sometimes have minor inaccuracies, e.g  will get . This may sometime lead to unexpected result when rounding, e.g    will get  (expected ). Switching to smaller units can improve this problem, for example:   will get  and   will get.