static S formatInt(int i, int digits) { ret padLeft(str(i), '0', digits); } static S formatInt(long l, int digits) { ret padLeft(str(l), '0', digits); }
Began life as a copy of #2000590
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
| Snippet ID: | #1012012 |
| Snippet name: | formatInt - format an int (or long) with fixed minimum number of digits |
| Eternal ID of this version: | #1012012/4 |
| Text MD5: | b3ecc82f6dad3b82968eb1958092ab08 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-09-17 12:35:34 |
| Source code size: | 163 bytes / 7 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 1145 / 1190 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |