Libraryless. Click here for Pure Java version (810L/6K/19K).
1 | !752 |
2 | |
3 | p { |
4 | testIt("123456789012345678901234567890"); |
5 | testIt("-123"); |
6 | print("ok!"); |
7 | } |
8 | |
9 | static void testIt(S val) { |
10 | BigInteger i = bigint(val); |
11 | S s = structure(i); |
12 | print(i); |
13 | print(quote(s)); |
14 | O o = safeUnstructure(s); |
15 | print(o); |
16 | assertEquals(i, o); |
17 | } |
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: | 736 / 760 |
Referenced in: | [show references] |