sS formatIntPercent_99(int percent) { ret formatInt(min(percent, 99), 2) + " %"; }
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1023112 |
Snippet name: | formatIntPercent_99 - always uses two digits, shows 100 as 99 |
Eternal ID of this version: | #1023112/2 |
Text MD5: | 5ecfa84082c9b22f1ee1ea8a15d60004 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-05-05 20:25:05 |
Source code size: | 86 bytes / 3 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 264 / 293 |
Version history: | 1 change(s) |
Referenced in: | [show references] |