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


< > BotCompany Repo | #1004158 // abs

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

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

static float abs(float f) { ret Math.abs(f); }
static int abs(int i) { ret Math.abs(i); }
static double abs(double d) { ret Math.abs(d); }

ifclass Complex
static double abs(Complex c) { ret c.abs(); }

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1004158
Snippet name: abs
Eternal ID of this version: #1004158/3
Text MD5: 2c751d5809f9320ba3af642cf0368315
Transpilation MD5: e5f0e8141741abc32e39fd21b58a34d4
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-09-03 05:10:31
Source code size: 213 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 504 / 556
Version history: 2 change(s)
Referenced in: [show references]