1 | static IntRange doubleToIntRange_endPlus1(double factor, DoubleRange r) { |
2 | ret r == null ? null : intRange(iround(r.start*factor), iround(r.end*factor)+1); |
3 | } |
Began life as a copy of #1024549
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: | #1024550 |
Snippet name: | doubleToIntRange_endPlus1 |
Eternal ID of this version: | #1024550/1 |
Text MD5: | a3531754b737098a13741c34ca0f7a52 |
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:17:05 |
Source code size: | 160 bytes / 3 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 238 / 277 |
Referenced in: | [show references] |