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)

static bool odd(int i) {
  ret (i & 1) != 0;
}

static bool odd(long i) {
  ret (i & 1) != 0;
}

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: 596 / 853
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1007642 - even - is a number even?