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

3
LINES

< > BotCompany Repo | #1008977 // boolToInt - bool (false/true) to int (0/1)

JavaX fragment (include)

static int boolToInt(bool b) {
  ret b ? 1 : 0;
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1008977
Snippet name: boolToInt - bool (false/true) to int (0/1)
Eternal ID of this version: #1008977/1
Text MD5: ab1f6264abf47401f455f9be5194599f
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-06-21 18:22:11
Source code size: 51 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 495 / 576
Referenced in: [show references]