A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

# Questions tagged [percent]

The tag has no usage guidance.

10 questions
Filter by
Sorted by
Tagged with
12 views

### Doing division on a Decimal returns 0 when trying to return a percent [duplicate]

When I run the following code, it will return a 0. It should return 50.00. System.Debug((100/200)*100); I'm certain this is a simple solution. But haven't been able to find out the reason why. I ...
65 views

### How to write formula field that returns a percentage to show amount at or below 100%

Your input is appreciated, I'm creating a formula field called consumption is a result of dividing two numeric fields (Modified Usage, and Range) that will return a percentage of usage for example. If ...
79 views

### Formula field to calculate the percentage of days remaining

I have a custom formula field where I need to calculate the amount of days in the year * 100 \ 365 = % of days remaining. I've created the following formula: ROUND((365 - (CloseDate - DATE(YEAR(...
321 views

### Salesforce doesn't save percentage fields as a decimal between 0 - 1?

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: //...
1k views

### How are percentage fields evaluated in process builder?

I'm having trouble figuring out how percent fields, specifically formula percent fields, are evaluated in criteria for process builder. We have a basic process using the "Conditions are met" criteria....
4k views

### Percentage in Lightning Components is not working correctly

It seems like Lightning isn't capable yet, to display percentage values intuitively. I used many different ways to display the value with input and output formatted as percentage and all the ...
97 views

### Percent type issue

I have percent field per. I am using this field in apex coding for calculation purpose. My formula in code is: Field_A__c = Field_B__c * Percent__c Suppose Percent__c = 75 (i.e 75%) and Field_B__c =...
81 views

### Percentage Formatting issue [visualforce] due to locale US vs Germany

I have a visualforce page and when i submit my commission percentage from a campaign plan in germany it turns 15.00% into 1.500,00% It is currently set up on the visualforce page like: <apex:...