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

4
LINES

< > BotCompany Repo | #1034894 // toDoubleOrNull - convert to Double, return null on null

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

Libraryless. Click here for Pure Java version (10697L/58K).

static Double toDoubleOrNull(O o) {
  if (o == null) null;
  ret toDouble(o);
}

Author comment

Began life as a copy of #1002175

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, iveijnkanddl, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1034894
Snippet name: toDoubleOrNull - convert to Double, return null on null
Eternal ID of this version: #1034894/3
Text MD5: a98481098b5d2e6c000ce7260d550e8c
Transpilation MD5: 43a01c2166db74751e3619b47f711157
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2024-06-23 21:02:17
Source code size: 82 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 99 / 145
Version history: 2 change(s)
Referenced in: [show references]