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

12
LINES

< > BotCompany Repo | #1007709 // plus - add BigIntegers etc

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (50L/1K).

static BigInteger plus(BigInteger a, BigInteger b) {
  ret a.add(b);
}

static BigInteger plus(BigInteger a, long b) {
  ret a.add(bigint(b));
}

static long plus(long a, long b) { ret a+b; }
static int plus(int a, int b) { ret a+b; }
static float plus(float a, float b) { ret a+b; }
static double plus(double a, double b) { ret a+b; }

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1007709
Snippet name: plus - add BigIntegers etc
Eternal ID of this version: #1007709/5
Text MD5: 878d468b855c0828720f266fc445123e
Transpilation MD5: 70f7309fcadfaf7adb53e2121f3d3f6c
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-01-18 13:19:07
Source code size: 346 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 499 / 595
Version history: 4 change(s)
Referenced in: [show references]