Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Memory Conversion

  • 14-08-2001 03:30PM
    #1
    Registered Users, Registered Users 2 Posts: 2,894 ✭✭✭


    I'm looking for a website or freeware tool that can calculate memory sizes ie. .5 gigs = ? megabytes. 4.25 Megabytes = ? bytes etc.


Comments

  • Closed Accounts Posts: 7,562 ✭✭✭leeroybrown


    Website/Program???

    Either you don't know this(below) or you are very lazy!

    Use a calculator.

    I K = 1024 Bytes
    I Meg = 1024 * 1024 Bytes
    1 Gig = 1024 * 1024 * 1024 Bytes


    .5 Gig = 536870912 = 1024 * 1024 * 1024 * 0.5

    4.25 Meg = 4456448 = 1024 * 1024 * 4.25

    I'm sure you get the idea.


    [This message has been edited by leeroybrown (edited 14-08-2001).]


  • Closed Accounts Posts: 2,525 ✭✭✭JustHalf


    And hard disk manufacturers use base-10 references.

    HDD:
    1Kb - 1000 bytes
    1Mb - 1000 Kb
    1Gb - 1000 Mb
    


  • Closed Accounts Posts: 1,651 ✭✭✭Enygma


    Save this as memory.html and open it in IE
    <html>
    <head>
    	<title>Memory Convertor</title>
       
    <script language="JavaScript">
    <!--
    
    function megToKilo()
    {
       var firstNumber  = document.memoryForm.firstNumber.value;
       var result       = firstNumber * 1024;
       document.memoryForm.secondNumber.value = "" + result;   
    }
    
    function kiloToMeg()
    {
       var firstNumber  = document.memoryForm.firstNumber.value;
       var result       = firstNumber / 1024;
       document.memoryForm.secondNumber.value = "" + result; 
    }
    
    //-->
    </script>
    </head>
    
    <body>
    
    <form name="memoryForm">
    <input type="text" name="firstNumber"> -> <input type="text" name="secondNumber"><br />
    <a href="#" onClick="megToKilo()">MegaBytes to KiloBytes</a><br />
    <a href="#" onClick="kiloToMeg()">KiloBytes to MegaBytes</a><br />
    <a href="#" onClick="megToKilo()">MegaBytes to GigaBytes</a><br />
    </form>
    
    </body>
    </html>
    
    


Advertisement