Question about percentage fields in Salesforce. I know salesforce is saving these values as double precision. However, it seems the value saved is a whole number > 1 instead of 0
For example:
//loanId is a percentage field with value 3%
loan__c l = [select interest_rate_L__c from loan__c where id = :loanId];
system.debug(l.interest_rate_L__c); //3.000
integer n = 3;
system.debug(l.interest_rate_L__c * n); //9.000
system.debug(l.interest_rate_L__c + n); //6.000
Why does Salesforce treat percentage fields like full numbers? Is this the intended functionality? The documentation leads me to believe that it would save as .03:
Number: A positive or negative number, either integer or decimal.
Currency: A number that comes with a currency sign.
Percent: A number that comes with a percent sign, stored as a number divided by 100.
https://trailhead.salesforce.com/en/content/learn/modules/advanced_formulas/numbers_formulas
It doesn't seem to be a number divided by 100...
Is this the intended functionality? Do I have some setting off?