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

7
LINES

< > BotCompany Repo | #1029487 - formatIntWithSpaces - format an int (or long), pad with spaces on the left

JavaX fragment (include)

sS formatIntWithSpaces(int i, int len) {
  ret padLeft(str(i), len);
}

sS formatIntWithSpaces(long l, int len) {
  ret padLeft(str(l), len);
}

Author comment

Began life as a copy of #1012012

download  show line numbers  debug dex   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, xrpafgyirdlv

No comments. add comment

Snippet ID: #1029487
Snippet name: formatIntWithSpaces - format an int (or long), pad with spaces on the left
Eternal ID of this version: #1029487/3
Text MD5: 5e5e490c48dd161916cde5fca5863dd1
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-08-14 20:24:35
Source code size: 149 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 28 / 44
Version history: 2 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1029487 & http://1029487.tinybrain.de