UK Inflation
Tools for working with inflation-adjusted prices in the UK.
Uses "Composite Price Index" data provided by the Bank of England.
Refer to the Bank of England site for the methods used to adjust prices against inflation and caveats in the calculation data and techniques.
Usage
Require the module the usual way
> var ukinflation = ;
To find out what goods and services costing £23.60 in 1975 would have cost in 1985:
> ukinflation;6533768545994066
To get the average inflation between two years:
> ukinflation10719769831985682
You can also pass in Date objects if it's more convenient:
> var from = '1975';> var to = '1985';> ukinflation;6533768545994066
Note that there's no data for the present year, so you can't convert to "present day" prices;
> ukinflation;Error: No UK inflation data available for the year 2016