Libraryless. Click here for Pure Java version (2544L/16K).
1 | sS formatHex(int i, int digits) { |
2 | ret padLeft(Int.toHexString(i), '0', digits); |
3 | } |
4 | |
5 | sS formatHex(long l, int digits) { |
6 | ret padLeft(Long.toHexString(l), '0', digits); |
7 | } |
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: | 158 / 240 |
Referenced in: | [show references] |