1 | static int iroundTowardsWithOutwardEpsilon(double a, double b, double epsilon) { |
2 | ret a > b ? ifloor(a+epsilon) : iceil(a-epsilon); |
3 | } |
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: | 113 / 125 |
Referenced in: | [show references] |