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

9
LINES

< > BotCompany Repo | #1004826 // odd - is a number odd?

JavaX fragment (include)

1  
static bool odd(int i) {
2  
  ret (i & 1) != 0;
3  
}
4  
5  
static bool odd(long i) {
6  
  ret (i & 1) != 0;
7  
}
8  
9  
static bool odd(BigInt i) { ret odd(toInt(i)); }

download  show line numbers  debug dex  old transpilations   

Travelled to 17 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, ekrmjmnbrukm, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1004826
Snippet name: odd - is a number odd?
Eternal ID of this version: #1004826/3
Text MD5: fb1b491f9e075ce1a50b8588b5f0dcba
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-08-12 21:22:27
Source code size: 153 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 601 / 861
Version history: 2 change(s)
Referenced in: [show references]