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

8
LINES

< > BotCompany Repo | #1017964 // bigintToGlobalID

JavaX fragment (include)

sS bigintToGlobalID(BigInt value) {
  char[] buf = new char[16];
  for (int i = 16-1; i >= 0; i--) {
    buf[i] = charPlus('a', mod(value, 26).intValue());
    value = div(value, 26);
  }
  ret str(buf);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1017964
Snippet name: bigintToGlobalID
Eternal ID of this version: #1017964/1
Text MD5: 96242d76047cb224c1ff1dd5a2c21d13
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-08-23 15:08:46
Source code size: 212 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 362 / 401
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)