Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
0
votes
1
answer
452
views
Javascript calculation returning incorrect value
In my excel sheet I'm using this formula
=10615.30152 *(1+$B$9-$B$10)^L4
here $B$9= 2.75% and $B$10 = .20% and L4 changes for each row from 0 to 30
In my javascript I'm trying to calculate value like … this:
for(let i=0;i<31; i++){
cashFlow = 10615.30152 * (1 + 2.75/100 - 0.20/100) ** i;
}
With each new row the amount mismatching is getting bigger. …
2
votes
1
answer
3k
views
For Loop in Aura JS taking long time to Process
I have a Aura Component, inside which I'm doing some calculation inside for loop.
In the for loop, I'm iterating around 3100 records, which is taking lot of time to process. … Below is my JS Method:
let priceTable = component.get("v.priceTableList");
let tableLength = priceTable.length -1;
for(let i=0;i<tableLength; i++){
if(priceTable[i].Unit__c <= zeroYear.Jan_Grid_kWh …