Libraryless. Click here for Pure Java version (1813L/12K).
static IntRange doubleToIntRange(double factor, DoubleRange r) { ret r == null ? null : intRange(iround(r.start*factor), iround(r.end*factor)); }
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: | #1024549 |
| Snippet name: | doubleToIntRange |
| Eternal ID of this version: | #1024549/1 |
| Text MD5: | db15e7a520e598aaa46ef0e6f89ff803 |
| Transpilation MD5: | b153554026ef5fe195ce6821ff6ec81b |
| Author: | stefan |
| Category: | javax / math |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-08-18 00:15:51 |
| Source code size: | 149 bytes / 3 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 455 / 573 |
| Referenced in: | [show references] |