Libraryless. Click here for Pure Java version (2102L/13K).
static int rowsForColsWithAspectRatio(int cols, int w, int h) { ret max(1, iround(cols*(double) h/w)); }
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: | 252 / 344 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |