If somebody wants to get the maximum length of a field, then he has to use below code:
integer fieldLength = Schema.SObjectType.CustObj__c.fields.CustField__c.getLength();
But, my question is, whether is this applibale to both Text and Number field or only Text Field ?