1 | static double toDouble(O o) { |
2 | if (o cast Number) |
3 | ret o.doubleValue(); |
4 | if (o cast BigInteger) |
5 | ret o.doubleValue(); |
6 | if (o cast S) |
7 | ret parseDouble(o); |
8 | if (o == null) ret 0.0; |
9 | throw fail(o); |
10 | } |
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: | 836 / 3831 |
Version history: | 3 change(s) |
Referenced in: | [show references] |