Template:AgeDecimal/doc

AgeDecimal returns ages as years with both integer and decimal portions, to the decimal accuracy of your choosing. It's really only suitable for 1 or 2 decimal places, though--0 may seem inaccurate since this uses an average year length rather than going by calendar year, and 3 or more allows for more accuracy than this can possibly calculate, with each day changing the value by about .0027 years.

7 inputs are allowed, though usually only 3 or 4 are necessary:

|year =  Year of start date, in 4 digit form. |month =  Month of start date, in 1 or 2 digit form. |day =  Day of start date, in 1 or 2 digit form. |decimals =  Number of digits after decimal wished for. Default is 1. |year2 =  Like year, but for the end date. If not given uses CURRENTYEARJST. |month2 =  Like month, but for the end date. If not given uses CURRENTMONTHJST. |day2 =  Like day, but for the end date. If not given uses CURRENTDAYJST.

The first 3 values given to the template are assumed to be year, month, and day, so the following are all valid ways of using this template:

Remember it is inefficient to make a page keep calculating a value that won't change, so while it may be useful to use year2, month2, and day2 to find a value, it's probably best to then simply save the page with the text output it provided.