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

3
LINES

< > BotCompany Repo | #1036226 // iroundTowards

JavaX fragment (include) [tags: use-pretranspiled]

Transpiled version (9581L) is out of date.

static int iroundTowards(double a, double b) {
  ret a > b ? ifloor(a) : iceil(a);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 2 computer(s): elmgxqgtpvxh, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1036226
Snippet name: iroundTowards
Eternal ID of this version: #1036226/3
Text MD5: 4f3ee101d890c63838d84c25cdaaeb44
Author: stefan
Category: javax / math
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-10-26 03:05:59
Source code size: 86 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 56 / 83
Version history: 2 change(s)
Referenced in: [show references]