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

4
LINES

< > BotCompany Repo | #1011551 // toInt_checked

JavaX fragment (include)

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

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: 417 / 585
Referenced in: [show references]