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).

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

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