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

17
LINES

< > BotCompany Repo | #1002046 // Try structure/unstructure with BigInteger

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (810L/6K/19K).

!752

p {
  testIt("123456789012345678901234567890");
  testIt("-123");
  print("ok!");
}

static void testIt(S val) {
  BigInteger i = bigint(val);
  S s = structure(i);
  print(i);
  print(quote(s));
  O o = safeUnstructure(s);
  print(o);
  assertEquals(i, o);
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1002046
Snippet name: Try structure/unstructure with BigInteger
Eternal ID of this version: #1002046/1
Text MD5: 9661cbc2a3308718e5d491a0a922f15e
Transpilation MD5: 116c9f1234003c65f998e648114a6f4e
Author: stefan
Category: javax
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-12-15 14:01:55
Source code size: 281 bytes / 17 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 644 / 647
Referenced in: [show references]