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

7
LINES

< > BotCompany Repo | #1014302 // parseDoubleOrMinus1

JavaX fragment (include)

static double parseDoubleOrMinus1(S s) {
  try {
    ret Double.parseDouble(s);
  } catch {
    ret -1;
  }
}

Author comment

Began life as a copy of #1001696

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: #1014302
Snippet name: parseDoubleOrMinus1
Eternal ID of this version: #1014302/1
Text MD5: d34a32657d067830b468fce15aa46859
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-04-20 00:58:47
Source code size: 115 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 383 / 411
Referenced in: [show references]