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

3
LINES

< > BotCompany Repo | #1036385 // toM_round - convert bytes to (binary) megabytes, round instead of ceil

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

Libraryless. Click here for Pure Java version (9945L/54K).

static long toM_round(long l) {
  ret lround(l/(1024*1024.0));
}

Author comment

Began life as a copy of #1001952

download  show line numbers  debug dex  old transpilations   

Travelled to 2 computer(s): mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1036385
Snippet name: toM_round - convert bytes to (binary) megabytes, round instead of ceil
Eternal ID of this version: #1036385/1
Text MD5: 0fbc8406269c5150acf7ce3f3406b750
Transpilation MD5: 3244add0c3d13cd9069c411947754886
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-11-30 17:07:23
Source code size: 66 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 122 / 172
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)