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

3
LINES

< > BotCompany Repo | #1024549 // doubleToIntRange

JavaX fragment (include) [tags: use-pretranspiled]

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: 244 / 325
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1024550 - doubleToIntRange_endPlus1
#1024611 - intToDoubleRange