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


< > 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));

Author comment

Began life as a copy of #1002176

download  show line numbers  debug dex  old transpilations   

Travelled to 22 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, ekrmjmnbrukm, elmgxqgtpvxh, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mowyntqkapby, mqqgnosmbjvj, ofpaelxlmzfo, podlckwnjdmb, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, wnsclhtenguj, 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: 663 / 3155
Version history: 2 change(s)
Referenced in: [show references]