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

7
LINES

< > BotCompany Repo | #1001952 - toM - convert bytes to (binary) megabytes

JavaX fragment (include)

static long toM(long l) {
  ret (l+1024*1024-1)/(1024*1024);
}

static S toM(long l, int digits) {
  ret formatDouble(toM_double(l), digits);
}

Author comment

Began life as a copy of #1001666

download  show line numbers  debug dex   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, odhhsrjjbcgr, podlckwnjdmb, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, xrpafgyirdlv

No comments. add comment

Snippet ID: #1001952
Snippet name: toM - convert bytes to (binary) megabytes
Eternal ID of this version: #1001952/1
Text MD5: ab109ca1452512857b4cdf4dad05f217
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-07-03 15:23:36
Source code size: 149 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 430 / 610
Referenced in: [show references]

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