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

3
LINES

< > BotCompany Repo | #1025260 // rowsForColsWithAspectRatio

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

Libraryless. Click here for Pure Java version (2102L/13K).

1  
static int rowsForColsWithAspectRatio(int cols, int w, int h) {
2  
  ret max(1, iround(cols*(double) h/w));
3  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1025260
Snippet name: rowsForColsWithAspectRatio
Eternal ID of this version: #1025260/1
Text MD5: d08fbe1e845e42d85bcec21a2f3770a3
Transpilation MD5: 416584ab11647f10613d42534d873e07
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-09-16 21:39:44
Source code size: 108 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 253 / 346
Referenced in: [show references]