1 | static int ratioRoundUp(double a, double b) {
|
2 | ret iceil(ratio(a, b)); |
3 | } |
4 | |
5 | static int ratioRoundUp(int a, int b) {
|
6 | ret (a+b-1)/b; |
7 | } |
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
| Snippet ID: | #1026631 |
| Snippet name: | ratioRoundUp |
| Eternal ID of this version: | #1026631/2 |
| Text MD5: | 9810648ff2e131477e699258bc6ceef2 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-01-06 16:29:06 |
| Source code size: | 139 bytes / 7 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 405 / 443 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |