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

3
LINES

< > BotCompany Repo | #1036341 // iroundTowardsWithOutwardEpsilon

JavaX fragment (include)

static int iroundTowardsWithOutwardEpsilon(double a, double b, double epsilon) {
  ret a > b ? ifloor(a+epsilon) : iceil(a-epsilon);
}

Author comment

Began life as a copy of #1036226

download  show line numbers  debug dex  old transpilations   

Travelled to 2 computer(s): mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1036341
Snippet name: iroundTowardsWithOutwardEpsilon
Eternal ID of this version: #1036341/1
Text MD5: 32a2f86262214b3b3364b787f85faf08
Author: stefan
Category: javax / math
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-11-21 09:59:27
Source code size: 136 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 4 / 10
Referenced in: [show references]