1 | static Number parseIntLongOrBigInt(S s) { |
2 | BigInt i = bigint(s); |
3 | if (canConvertToInt(i)) ret toInt(i); |
4 | if (canConvertToLong(i)) ret toLong(i); |
5 | ret i; |
6 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1017239 |
Snippet name: | parseIntLongOrBigInt |
Eternal ID of this version: | #1017239/1 |
Text MD5: | 4a07a6f947dce9da4a5e9fc2d8def3e3 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-07-14 22:03:22 |
Source code size: | 163 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 339 / 358 |
Referenced in: | [show references] |