Converts the pre-1971 subunits of the pound sterling to its modern decimal subunits. Also supports conversion of guineas (21 shillings) and marks (13s 4d; or 160d); if the main units (pounds, shillings, and pence), guineas, and marks are all used at once it returns the (decimalised) sum of all units. It does not natively include subdivisions of the penny (halfpennies, farthings, quarter-farthings, etc.); those must be pre-decimalised and inputted as part of the "d" parameter, which should be fairly easy to do. The rounding provided in the result is by default two decimal places but can be modified in the "round" parameter.
For example, the Mad Hatter's hat is worth 10/6, which is £{{£sd|s=10|d=6}}
= £0.53.
The parameters are as follows:
l
- The number of poundss
- The number of shillingsd
- The number of penceg
- The number of guineasm
- The number of marksround
- The number of digits after the decimal point to which the result is roundedRound has a default value of 2, while all other parameter values default to zero.
Aliases