Template:CENTURY/doc

This template computes the calendar century number for the gregorian year in parameter. It is different from the astronomical century number (which starts at 0).


 * Syntax :
 *  NaN


 * The year must be astronomical (year=1 in 1 AD (Anno Domini), year=0 in 1 BC, year=-1 in 2 BC).


 * Examples :
 *  22  returns 22
 *  22  returns 22
 *  22  returns 22
 *  21  returns 21
 *  21  returns 21
 *  21  returns 21
 *  21  returns 21
 *  21 </tt> returns 21
 *  20 </tt> returns 20
 *  20 </tt> returns 20
 *  20 </tt> returns 20
 *  20 </tt> returns 20
 *  20 </tt> returns 20
 *  19 </tt> returns 19
 *  19 </tt> returns 19
 *  2 </tt> returns 2
 *  2 </tt> returns 2
 *  2 </tt> returns 2
 *  1 </tt> returns 1
 *  1 </tt> returns 1
 *  1 </tt> returns 1
 *  1 </tt> returns 1
 *  1 </tt> returns 1
 * <tt> 0 </tt> returns 0
 * <tt> 0 </tt> returns 0
 * <tt> 0 </tt> returns 0
 * <tt> 0 </tt> returns 0
 * <tt> 0 </tt> returns 0
 * <tt> -1 </tt> returns -1
 * <tt> -10 </tt> returns -10
 * <tt> -10 </tt> returns -10
 * <tt> -10 </tt> returns -10
 * <tt> -11 </tt> returns -11


 * See also :
 * Template:DECADE
 * Template:YEARCC
 * Template:YEARYY
 * Template:MONTHDAYS
 * Template:ISLEAPYEAR
 * Template:JULIANDAY
 * Template:WEEKDAY
 * Template:ISOYEAR
 * Template:CURRENTCENTURY