Results 1 to 7 of 7

Thread: Convert Bytes to KiloBytes, MegaBytes, Gigabytes???

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2001
    Location
    California
    Posts
    203

    Convert Bytes to KiloBytes, MegaBytes, Gigabytes???

    what is the formula to convert bytes to KiloBytes, MegaBytes, and Gigabytes????

  2. #2
    Frenzied Member nishantp's Avatar
    Join Date
    Jan 2001
    Location
    Where you least expect me to be
    Posts
    1,375
    Well first of all, it depends how you want to do it. When your computer boots im sure you've noticed that when it counts RAM, it says a number slightly larger than the amount of RAM you think you have. Thats because 1KB = 1024bytes, not 1000. If you right click on My Computer and go to properties, you'll see the number you except. But windows is assuming that 1KB = 1000bytes. Which do you want to use?
    You just proved that sig advertisements work.

  3. #3
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,810
    1 KB = 1024 B
    1 MB = 1048576 B = 1024 KB
    1 GB = 1073741824 B = 1048576 MB


    So... the formula is

    X KB = NumberOfBytes/1024
    X MB = NumberOfBytes/1048576 'or X MB = NumberOfBytes/1024/1024

    etc, etc.
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Jan 2001
    Location
    California
    Posts
    203
    Thanks,

    how come when I use the file system object, the property size is less than the actual bytes used(which you can see if you access the folder through explorer?... the file system object returns the folder size, but the actual bytes used should be a little more. How do I get the actual bytes used and the "actual" free space? and the actual totol size of a drive/folder/ etc.....

  5. #5
    The picture isn't missing BuggyProgrammer's Avatar
    Join Date
    Oct 2000
    Location
    Vancouver, Canada
    Posts
    5,217
    I think Mc Brain meant that 1 gig is 1048576 KB not MB
    Remember, if someone's post was not helpful, you can always rate their post negatively .

  6. #6
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,810
    Originally posted by BuggyProgrammer
    I think Mc Brain meant that 1 gig is 1048576 KB not MB
    Sorry.....

    1 KB = 1024 B
    1 MB = 1048576 B = 1024 KB
    1 GB = 1073741824 B = 1048576 KB = 1024 MB
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  7. #7
    Registered User Nucleus's Avatar
    Join Date
    Apr 2001
    Location
    So that's what you are up to ;)
    Posts
    2,530

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width