nix_usinflation

United States of America Dollar inflation calculator
git clone https://0xdd.org/code/nix_usinflation.git
Log | Files | Refs | README | LICENSE

README (923B)


      1 # nix_usinflation
      2 United States of America Dollar inflation calculator
      3 
      4 ## usage
      5   - convert 100.00USD in 1913 to USD in 2018: `usinflation 1913 100.00 2018`
      6   - convert 100.00USD in 2018 to USD in 1913: `usinflation 2018 100.00 1913`
      7 
      8 ## building and installing
      9   - build: `make`
     10   - install: `sudo cp usinflation /usr/local/bin/`
     11 
     12 ## data sources
     13 the United States Department of Labor's Bureau of Labor Statistics records the Consumer Price Index (CPI) monthly.
     14 this can be used to generally determine the value of the US Dollar relative to other times.
     15 specifically, this program uses the `cu.data.1.AllItems` file under the "All Urban Consumers" CPI database which can be found [here](https://www.bls.gov/cpi/data.htm) in "Text File" format.
     16 the `data_process.py` program takes this file (named `data.txt` in this repo for brevity) and outputs a C array containing the average of the monthly CPI values for each year.
     17