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

3
LINES

< > BotCompany Repo | #1022934 // clipInt

JavaX fragment (include)

static int clipInt(int min, int max, int i) {
  ret max(min, min(max, i));
}

Author comment

Began life as a copy of #1022931

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1022934
Snippet name: clipInt
Eternal ID of this version: #1022934/1
Text MD5: 31f0c5215ee37781864cd954f6dce10e
Author: stefan
Category: javax / maths
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-04-14 23:09:01
Source code size: 78 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 224 / 244
Referenced in: [show references]