Ysengrim Posted November 4, 2007 Share Posted November 4, 2007 While downloading a file I use the command @InetGetBytesRead to let see the user how much is downloaded alreadyBut to let the progression not in Bytes but in Megabytes I used @InetGetBytesRead/1000so far so goodbut its a very long number and I only will show on the screen the 4 first numbers ( example 14.52 Mb)Wich command do I have to use to filter out the rest?to compare : in Microsoft Excel you can use the formats "##.##" thanksYsengrim Link to comment Share on other sites More sharing options...
Developers Jos Posted November 4, 2007 Developers Share Posted November 4, 2007 StringFormat("%.2f",@InetGetBytesRead/1000) SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Ysengrim Posted November 5, 2007 Author Share Posted November 5, 2007 Thank you very much I also found a way : $MBytes = StringLeft(@InetGetBytesRead/1000, 5) but your solution is shorter and better ! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now