Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

3
LINES

< > BotCompany Repo | #1024550 // doubleToIntRange_endPlus1

JavaX fragment (include)

static IntRange doubleToIntRange_endPlus1(double factor, DoubleRange r) {
  ret r == null ? null : intRange(iround(r.start*factor), iround(r.end*factor)+1);
}

Author comment

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: 237 / 276
Referenced in: [show references]