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

7
LINES

< > BotCompany Repo | #1019459 // isBetween (inclusive)

JavaX fragment (include)

1  
sbool isBetween(long x, long min, long max) {
2  
  ret x >= min && x <= max;
3  
}
4  
5  
sbool isBetween(double x, double min, double max) {
6  
  ret x >= min && x <= max;
7  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1019459
Snippet name: isBetween (inclusive)
Eternal ID of this version: #1019459/2
Text MD5: 7772a03865d76934237e7fea40b2adfb
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-17 21:00:37
Source code size: 164 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 356 / 600
Version history: 1 change(s)
Referenced in: [show references]