Jump to content
Sign in to follow this  
anzacfalcon

InetGetSize in Megabytes

Recommended Posts

anzacfalcon

InetGetSize in "Bytes" isn't too user-friendly so whats the best way to convert the variable to megabytes. Also @InetGetBytesRead in megabytes.

Edited by anzacfalcon

Share this post


Link to post
Share on other sites
Authenticity

bytes/2^10 KB

bytes/2^20 MB

bytes/2^30 GB

etc..

Share this post


Link to post
Share on other sites
anzacfalcon

bytes/2^10 KB

bytes/2^20 MB

bytes/2^30 GB

etc..

Thanks but can you use this in an example :)

Share this post


Link to post
Share on other sites
Authenticity

ConsoleWrite(7516192768 & " is: " & @CRLF)
ConsoleWrite(@TAB & 7516192768/2^10 & " KB" & @CRLF)
ConsoleWrite(@TAB & 7516192768/2^20 & " MB" & @CRLF)
ConsoleWrite(@TAB & 7516192768/2^30 & " GB" & @CRLF)
ConsoleWrite(@TAB & Round(7516192768/2^40, 3) & " TB" & @CRLF)
ConsoleWrite(@TAB & StringFormat("%f PB", Round(7516192768/2^50, 6)) & @CRLF)

...

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.