Libraryless. Click here for Pure Java version (9241L/51K).
1 | static long ldiv_round(long a, long b) { |
2 | ret (a+b/2)/b; |
3 | } |
4 | |
5 | static long ldiv_round(double a, double b) { |
6 | ret lround(a/b); |
7 | } |
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: | 162 / 216 |
Referenced in: | [show references] |