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.

Filter by
Sorted by
Tagged with
0
votes
1answer
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 ...
0
votes
1answer
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 ...
1
vote
1answer
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(...
0
votes
1answer
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: //...
5
votes
2answers
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....
7
votes
3answers
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 ...
1
vote
1answer
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 =...
1
vote
0answers
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:...
0
votes
1answer
121 views

Critical Update: Trust Percent Values in Flow sObject Variables Again - 2

Is this update is only for Flows (Like visual flows) and it does not have any impact on regular percentage field or formula field or formula field using percentage data? Note: I earlier posted THIS ...
2
votes
1answer
176 views

Critical Update: Trust Percent Values in Flow sObject Variables Again

When I go thorough this critical update's description it says, Previously, our calculations on percent values weren’t always working as expected. We rolled out a partial fix earlier, and this ...