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

3
LINES

< > BotCompany Repo | #1035529 // iround_clamp - round to int, clamp to int range

JavaX fragment (include)

1  
static int iround_clamp(double d) {
2  
  ret iround(clamp(d, Int.MIN_VALUE, Int.MAX_VALUE));
3  
}

Author comment

Began life as a copy of #1003741

download  show line numbers  debug dex  old transpilations   

Travelled to 2 computer(s): mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1035529
Snippet name: iround_clamp - round to int, clamp to int range
Eternal ID of this version: #1035529/1
Text MD5: eb47f4ad79f5616170309b5049890da4
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-06-04 05:33:29
Source code size: 93 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 107 / 128
Referenced in: [show references]