Libraryless. Click here for Pure Java version (9186L/51K).
static double floatSumAsDouble(Iterable<Float> l) { double sum = 0; for (Float i : unnull(l)) if (i != null) sum += i; ret sum; } static double floatSumAsDouble(float... l) { double sum = 0; if (l != null) for (float i : l) sum += i; ret sum; }
Began life as a copy of #1024749
download show line numbers debug dex old transpilations
Travelled to 2 computer(s): mqqgnosmbjvj, wnsclhtenguj
No comments. add comment
| Snippet ID: | #1035866 |
| Snippet name: | floatSumAsDouble |
| Eternal ID of this version: | #1035866/1 |
| Text MD5: | d47ce30b419c6361ecd76471ed622e6a |
| Transpilation MD5: | 07416f2391c5cc84cf699642421766f4 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-08-05 15:28:17 |
| Source code size: | 277 bytes / 13 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 365 / 469 |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |