Template:Number

From Discworld MUD Wiki
Jump to: navigation, search

[edit]

Documentation
 

{{Number}} is used to get a number that can be used in the #expr function.

Please note that there should not be "lb" or "lbs" or "lb." inside the parameter.

Furthermore, there must not be spaces around the "/" or it will fail.

Making those non-standard representations work is too costly for pages with a huge number of {{Number}} templates, which is used inside {{Weightkey}}.

Example

{{Number| 2 1/9 }}

Result: (2+1/9)


To evaluate the number put it inside a #expr template:

{{#expr:{{Number| 2 1/9 }}}}
Result: 2.1111111111111