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   

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

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

Formerly at http://tinybrain.de/1017964 & http://1017964.tinybrain.de