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

3
LINES

< > BotCompany Repo | #1032052 // zeroOne_double - bool to 0.0/1.0

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

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

static double zeroOne_double(bool b) {
  ret b ? 1.0 : 0.0;
}

Author comment

Began life as a copy of #1014233

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx

No comments. add comment

Snippet ID: #1032052
Snippet name: zeroOne_double - bool to 0.0/1.0
Eternal ID of this version: #1032052/1
Text MD5: baca5551e5ff81fd3347222cdb87b4aa
Transpilation MD5: de36d7ae9e9f6e465d8bcb989ca4518a
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-08-11 07:54:56
Source code size: 63 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 75 / 126
Referenced in: [show references]