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

11
LINES

< > BotCompany Repo | #1007642 // even - is a number even?

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (36L/1K).

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

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

static bool even(BigInt n) {
  ret even(n.intValue());
}

Author comment

Began life as a copy of #1004826

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1007642
Snippet name: even - is a number even?
Eternal ID of this version: #1007642/3
Text MD5: 804166ddd6602f844977ab2fed696b37
Transpilation MD5: ce2b14da5a374f903e1572c624dd1f7c
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-12-09 15:02:25
Source code size: 165 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 577 / 690
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)