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

5
LINES

< > BotCompany Repo | #1006344 // growRangeInPercent

JavaX fragment (include)

1  
static Range growRangeInPercent(Range r, float percent) {
2  
  float l = r.max-r.min;
3  
  percent = percent/100;
4  
  ret new Range(r.min-l*percent, r.max+l*percent);
5  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1006344
Snippet name: growRangeInPercent
Eternal ID of this version: #1006344/1
Text MD5: a078bbe378af3b3ad524c6c909a3c10f
Author: stefan
Category: javax / maths
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-12-28 23:06:18
Source code size: 164 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 469 / 493
Referenced in: [show references]