I think that this may be more math related than anyhting but I have a colum that shows me a computers total physical memory. However this output is in terms of bytes- something like 2145374208.
Does anyone know the proper equation to convert this number into Gigabytes? So the above example would convert to something like 2.1Gb.
Thanks.
A Kilobyte is 1024 bytes (KB)
A Megabyte is KB * KB = 1,048,576
A Gigabtye is KB * KB * KB = about 1,070,000,000
Well according to Wikipedia (yep I know) a gigabyte is 1,073,741,824 bytes.
So just divide the number you got by that amount, and use Format to reduce the amount of decimal places you want to display.
Regards
Special-K
I rarely return to a problem once I've answered it so make sure you clearly define what the trouble is.
Hi,
I think this bytes converter can be very usefull to you here is the link
http://mon-ip.awardspace.com/converter.php
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks