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

4
LINES

< > BotCompany Repo | #1022020 // parseIntOrLong

JavaX fragment (include)

static Number parseIntOrLong(String s) {
  long l = parseLong(s);
  ret longIsInt(l) ? (Number) (int) l : (Number) l;
}

Author comment

Began life as a copy of #1001246

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1022020
Snippet name: parseIntOrLong
Eternal ID of this version: #1022020/1
Text MD5: e48d10989081859d856286fd9380c3c2
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-03-05 20:08:12
Source code size: 122 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 179 / 207
Referenced in: [show references]