1 | sS bigintToGlobalID(BigInt value) {
|
2 | char[] buf = new char[16]; |
3 | for (int i = 16-1; i >= 0; i--) {
|
4 | buf[i] = charPlus('a', mod(value, 26).intValue());
|
5 | value = div(value, 26); |
6 | } |
7 | ret str(buf); |
8 | } |
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: | 594 / 634 |
| Referenced in: | [show references] |