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 22 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ekrmjmnbrukm, elmgxqgtpvxh, gjtlkbvenryc, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mowyntqkapby, mqqgnosmbjvj, ofpaelxlmzfo, podlckwnjdmb, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, whxojlpjdney, wnsclhtenguj, 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: | 835 / 3830 |
Version history: | 3 change(s) |
Referenced in: | #1002427 - Accellerating 629 (SPIKE) #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1034894 - toDoubleOrNull - convert to Double, return null on null #3000382 - Answer for ferdie (>> t = 1, f = 0) |