Libraryless. Click here for Pure Java version (9241L/51K).
static long ldiv_round(long a, long b) { ret (a+b/2)/b; } static long ldiv_round(double a, double b) { ret lround(a/b); }
Began life as a copy of #1034948
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): elmgxqgtpvxh, mqqgnosmbjvj, wnsclhtenguj
No comments. add comment
| Snippet ID: | #1036052 |
| Snippet name: | ldiv_round - long divide, round |
| Eternal ID of this version: | #1036052/1 |
| Text MD5: | 88778cf0c717f752f6a9e995b943276e |
| Transpilation MD5: | b7a2676b6b7faa9196ea35176552dc2b |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-09-03 02:06:24 |
| Source code size: | 132 bytes / 7 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 474 / 547 |
| Referenced in: | [show references] |