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

7
LINES

< > BotCompany Repo | #1032019 // toKB_str

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

Libraryless. Click here for Pure Java version (3158L/17K).

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

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

Author comment

Began life as a copy of #1019476

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx

No comments. add comment

Snippet ID: #1032019
Snippet name: toKB_str
Eternal ID of this version: #1032019/3
Text MD5: 7efc19d9dccb35ff4c1d0651d6ea381e
Transpilation MD5: daee4e3563968f678bdde02320d7183e
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-08-14 04:18:20
Source code size: 109 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 152 / 202
Version history: 2 change(s)
Referenced in: [show references]