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

9
LINES

< > BotCompany Repo | #1003741 - iround - round to int

JavaX fragment (include)

static int iround(double d) {
  ret (int) Math.round(d);
}

ifndef iround_noGeneric
static int iround(Number n) {
  ret iround(toDouble(n));
}
endifndef

Author comment

Began life as a copy of #1002176

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1003741
Snippet name: iround - round to int
Eternal ID of this version: #1003741/3
Text MD5: da5798988c038eb69781f60a59640987
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-08-09 20:21:10
Source code size: 160 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 477 / 541
Version history: 2 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1003741 & http://1003741.tinybrain.de