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

7
LINES

< > BotCompany Repo | #1034206 // str_toKB

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (9931L/55K).

sS str_toKB(long l) {
  ret n2(toK(l)) + " KB";
}

sS str_toKB(File f) {
  ret str_toKB(fileSize(f));
}

Author comment

Began life as a copy of #1019476

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, elmgxqgtpvxh, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1034206
Snippet name: str_toKB
Eternal ID of this version: #1034206/3
Text MD5: 69d92d9dae2e113a4eb45bf4c1aac938
Transpilation MD5: 4c005a7957f0094f06b7e316268a3bef
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-12-27 19:23:16
Source code size: 109 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 164 / 247
Version history: 2 change(s)
Referenced in: [show references]