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

3
LINES

< > BotCompany Repo | #1019589 // limitToUByte

JavaX fragment (include)

static int limitToUByte(int i) {
  ret max(0, min(255, i));
}

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: #1019589
Snippet name: limitToUByte
Eternal ID of this version: #1019589/1
Text MD5: ca0c08c08137bf22cdedef7c00ce52e9
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-11-13 03:22:47
Source code size: 63 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 288 / 339
Referenced in: [show references]