def updateAge(allClinDict):

    pKey = findProperKey ( allClinDict, "bcr_patient_barcode" )
    aKey = findProperKey ( allClinDict, "age_at_initial_pathologic_diagnosis" )
    bKey = findProperKey ( allClinDict, "days_to_birth" )

    print " running updateAge ... "

    numClin = getNumPatients(allClinDict)
    print " total number of patients : ", numClin

    for ii in range(numClin):
        try:
            aCode = allClinDict[pKey][ii]
            curAge = allClinDict[aKey][ii]
            curD2B = allClinDict[bKey][ii]
            newAge = float(0 - int(curD2B)) / DAYS_PER_YEAR
            # now we want to limit the 'precision' to two decimal places
            newAge = float(int((100. * newAge) + 0.49)) / 100.
            if (abs(curAge - int(newAge)) > 0):
                print " ERROR in updateAge ??? ", curAge, curD2B, newAge, aCode
            allClinDict[aKey][ii] = newAge
        except:
            doNothing = 1

    return (allClinDict)