daily pastebin goal
32%
SHARE
TWEET

Untitled

a guest Sep 21st, 2018 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE html>
  2. <title>file Size Unit Calculator</title>
  3. <div>Expected value: <b>269MB</b></div>
  4. <div>Actual value: <b id="ret"></b></div>
  5. <script>
  6.  
  7. var fileSizeUnits = function(a,c){for(;a>>10;c=-~c)a>>=10;return a+(" kMGT"[c]||"")+"B"}
  8. document.getElementById( "ret" ).innerHTML = fileSizeUnits(282630144)​
  9. </script>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top