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

8
LINES

< > BotCompany Repo | #1035506 // asPercentIncrease

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

Libraryless. Click here for Pure Java version (47L/1K).

static double asPercentIncrease(double ratio) {
  ret (ratio-1)*100;
}

// higher value first
static double asPercentIncrease(double a, double b) {
  ret asPercentIncrease(doubleRatio(a, b));
}

Author comment

Began life as a copy of #1035481

download  show line numbers  debug dex  old transpilations   

Travelled to 2 computer(s): mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1035506
Snippet name: asPercentIncrease
Eternal ID of this version: #1035506/5
Text MD5: afc73ae3941e8c82c16dddf302b72ed5
Transpilation MD5: 42790b6f6da713c8eda09eccda6c028f
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-10-23 21:51:25
Source code size: 200 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 154 / 208
Version history: 4 change(s)
Referenced in: [show references]