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

4
LINES

< > BotCompany Repo | #1011551 // toInt_checked

JavaX fragment (include)

1  
static int toInt_checked(long l) {
2  
  if (l != (int) l) fail("Too large for int: " + l);
3  
  ret (int) l;
4  
}

Author comment

Began life as a copy of #1002621

download  show line numbers  debug dex  old transpilations   

Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, whxojlpjdney

No comments. add comment

Snippet ID: #1011551
Snippet name: toInt_checked
Eternal ID of this version: #1011551/1
Text MD5: c4047dd03f8eb5f450794db7df160f90
Author: stefan
Category: javax / maths
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-10-31 03:15:16
Source code size: 107 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 483 / 652
Referenced in: [show references]