From Discworld MUD Wiki
Jump to: navigation, search

  {{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}}.


{{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