Libraryless. Click here for Pure Java version (9232L/51K).
static double combinePercentChanges(Iterable<Double> l) { double product = 1; for (i : unnull(l)) if (i != null) product *= (i+100)/100; ret product*100-100; } static double combinePercentChanges(double... l) { double product = 1; for (i : unnull(l)) product *= (i+100)/100; ret product*100-100; }
Began life as a copy of #1019131
download show line numbers debug dex old transpilations
Travelled to 2 computer(s): elmgxqgtpvxh, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1036177 |
| Snippet name: | combinePercentChanges |
| Eternal ID of this version: | #1036177/5 |
| Text MD5: | d085d5d412b4511637cb3cc3d43e5250 |
| Transpilation MD5: | 0b11ddd586c899037748aa5fc334f1ee |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-10-04 23:01:26 |
| Source code size: | 330 bytes / 13 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 391 / 506 |
| Version history: | 4 change(s) |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |