To work out someone's age as a decimal you need to work out the number of days between their birth and today. Once you have the number of days then you can divide it by 365.25, which is the number of days in a year.
We use 365.25 to take into account leap years.