Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

7
LINES

< > BotCompany Repo | #1019210 // average - synonym of avg - average of 2 values

JavaX fragment (include)

static float average(float a, float b) {
  ret (a+b)/2;
}

static double average(double a, double b) {
  ret (a+b)/2;
}

Author comment

Began life as a copy of #1006807

download  show line numbers  debug dex  old transpilations   

Travelled to 12 computer(s): bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1019210
Snippet name: average - synonym of avg - average of 2 values
Eternal ID of this version: #1019210/4
Text MD5: d92dc6601de43db1f5fa582518c0d559
Author: stefan
Category: javax / maths
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-11-11 20:12:26
Source code size: 125 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 441 / 448
Version history: 3 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)