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

3
LINES

< > BotCompany Repo | #1036300 // naNToZero

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

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

1  
static double naNToZero(double x) {
2  
  ret isNaN(x) ? 0.0 : x;
3  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 2 computer(s): mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1036300
Snippet name: naNToZero
Eternal ID of this version: #1036300/1
Text MD5: 1052921ab066491f601e6dddd35a70e6
Transpilation MD5: 16864f7655ce95bdd8f0ef3796ff7c9a
Author: stefan
Category: javax / math
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-11-14 13:58:12
Source code size: 65 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 131 / 178
Referenced in: [show references]