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

6
LINES

< > BotCompany Repo | #1017239 // parseIntLongOrBigInt

JavaX fragment (include)

static Number parseIntLongOrBigInt(S s) {
  BigInt i = bigint(s);
  if (canConvertToInt(i)) ret toInt(i);
  if (canConvertToLong(i)) ret toLong(i);
  ret i;
}

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: 330 / 349
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1032670 - parseLongOrBigInt