I have a custom setting that I created with some variable, one of which is a number field. In apex, I want to determine the number of digits that the field is allowed. I'm new to the world of custom settings, but can you do this? if it were an sObject, you could use this Class http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_methods_system_fields_describe.htm
works on objects:
Schema.DescribeFieldResult F = Account.AccountNumber.getDescribe();
system.debug(F);
custom settings, not so much:
Schema.DescribeFieldResult F =Cust_Setting__c.field1__c.getDigits() ;
system.debug(F);