Math Question...

Discussion in 'Green Room' started by Eagle710, Dec 7, 2007.

  1. Eagle710

    Eagle710 OSNN Senior Addict

    Messages:
    312
    Location:
    Toronto, Ontario, Canada
    Besides using a converter on the net how can i calculate bytes to megabytes..... Like an actual calculation formula(not just a converter)

    Eagle710
     
  2. Fenris

    Fenris OSNN Senior Addict

    Messages:
    267
    Quick and simple way would be to divide the amount of bytes you are looking for by 1megabyte which is 1,048,576bytes, So X/1048576 and it should give you how many megabytes it is.
     
  3. ray_gillespie

    ray_gillespie Moderator Staff Member Political User

    Messages:
    1,692
    Location:
    Birmingham, UK
    Fenris is right. The principle behind binary Megabytes/Kilobytes etc is quite simple.

    1 Kilobyte = 1,024 bytes
    1 Megabyte = 1,024 Kilobytes
    1 Gigabyte = 1,024 Megabytes
    1 Terabyte = 1,024 Gigabytes

    and so on. In terms of bytes, this works out at:

    1 Kilobyte = 1,024 bytes
    1 Megabyte = 1,024 x 1,024 = 1,048,576 bytes
    1 Gigabyte = 1,024 x 1,024 x 1,024 = 1,073,741,824 bytes
    1 Terabyte = 1,024 Gigabytes = 1,099,511,627,776 bytes

    I hope that's useful.
     
  4. X-Istence

    X-Istence * Political User

    Messages:
    6,498
    Location:
    USA