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

3
LINES

< > BotCompany Repo | #1019267 // avgShort - average of 2 short values

JavaX fragment (include)

1  
static short avgShort(short a, short b) {
2  
  ret (short) ((a+(int) b)/2);
3  
}

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: #1019267
Snippet name: avgShort - average of 2 short values
Eternal ID of this version: #1019267/3
Text MD5: f6376f0ef16d942037875b5881ecd14f
Author: stefan
Category: javax / maths
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-10-28 18:08:42
Source code size: 76 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 330 / 369
Version history: 2 change(s)
Referenced in: [show references]