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

7
LINES

< > BotCompany Repo | #1023132 // lround - round to long

JavaX fragment (include)

1  
static long lround(double d) {
2  
  ret Math.round(d);
3  
}
4  
5  
static long lround(Number n) {
6  
  ret lround(toDouble(n));
7  
}

Author comment

Began life as a copy of #1003741

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1023132
Snippet name: lround - round to long
Eternal ID of this version: #1023132/4
Text MD5: ca73d0c1f6e51a1ab4468f5a041476ae
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-05-15 15:42:18
Source code size: 120 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 269 / 339
Version history: 3 change(s)
Referenced in: [show references]