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 returns 21
 * 20 returns 20
 * 20 returns 20
 * 20 returns 20
 * 20 returns 20
 * 20 returns 20
 * 19 returns 19
 * 19 returns 19
 * 2 returns 2
 * 2 returns 2
 * 2 returns 2
 * 1 returns 1
 * 1 returns 1
 * 1 returns 1
 * 1 returns 1
 * 1 returns 1
 * 0 returns 0
 * 0 returns 0
 * 0 returns 0
 * 0 returns 0
 * 0 returns 0
 * -1 returns -1
 * -10 returns -10
 * -10 returns -10
 * -10 returns -10
 * -11 returns -11