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

4
LINES

< > BotCompany Repo | #1008017 // fractionDone

JavaX fragment (include)

static void fractionDone(double fraction) {
  fraction = max(0, min(1, fraction);
  consoleTitleStatus(fraction == 1 ? "" : formatDoubleFull(fraction*100, 1) + "%");
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1008017
Snippet name: fractionDone
Eternal ID of this version: #1008017/5
Text MD5: e4a0e80d7eb59d151e47031f9ab54928
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-04-20 23:34:58
Source code size: 170 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 432 / 470
Version history: 4 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)