Libraryless. Click here for Pure Java version (2544L/16K).
sS formatHex(int i, int digits) { ret padLeft(Int.toHexString(i), '0', digits); } sS formatHex(long l, int digits) { ret padLeft(Long.toHexString(l), '0', digits); }
Began life as a copy of #1012012
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1029797 |
| Snippet name: | formatHex - format an int (or long) as hex with fixed number of digits |
| Eternal ID of this version: | #1029797/1 |
| Text MD5: | 66b4dbe664b7f78ba6853f4000ab6371 |
| Transpilation MD5: | bb1b25548aee65c2917cef216fe2060c |
| 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:36:29 |
| Source code size: | 176 bytes / 7 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 363 / 496 |
| Referenced in: | [show references] |