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

4
LINES

< > TinyBrain | #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   

Travelled to 2 computer(s): cfunsshuasjs, tvejysmllsmz

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: 16 / 8
Version history: 4 change(s)
Referenced in: [show]