static float avg(float a, float b) { ret (a+b)/2; } static double avg(double a, double b) { ret (a+b)/2; } static double avg(double[] l) { ret doubleAverage(l); }
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1006807 |
Snippet name: | avg - average of 2 values |
Eternal ID of this version: | #1006807/4 |
Text MD5: | af0f15ff53be65d08d3b17a7badf2313 |
Author: | stefan |
Category: | javax / maths |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-10-02 05:17:55 |
Source code size: | 182 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 485 / 547 |
Version history: | 3 change(s) |
Referenced in: | [show references] |