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

10
LINES

< > BotCompany Repo | #1002175 - toDouble

JavaX fragment (include)

static double toDouble(O o) {
  if (o cast Number)
    ret o.doubleValue();
  if (o cast BigInteger)
    ret o.doubleValue();
  if (o cast S)
    ret parseDouble(o);
  if (o == null) ret 0.0;
  throw fail(o);
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1002175
Snippet name: toDouble
Eternal ID of this version: #1002175/4
Text MD5: 657f50d87ed757ef8903879e626b3560
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-03-04 19:23:35
Source code size: 219 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 568 / 924
Version history: 3 change(s)
Referenced in: [show references]