Sign in to follow this  
Followers 0
teris1994

Variable

4 posts in this topic

Hello guys , i have create a script for my program for get filesize . I get the size and all is right .

But the sum for size folder , in label prin like that

3.32423423482304 MB

I want see like that :

3.32 MB

The variable in a  function 
 global $size= ($image_size + $libs_size + $logs_size + $tools_size)

if $size > 1048576 Then
      $size_a = " MB"
      $size = $size/1048576
   ElseIf $size< 1048576 Then
      $size_a = " bytes"
   EndIf
   local $label_info_size = GUICtrlCreateLabel("The size is:" & $size & $size_a & "." ,100 , 380)
   

Some parts from my code , to neeed... If you want all code tell me please

Share this post


Link to post
Share on other sites



thank you very much is work fine , and i undrstand the code

if Round($size,2)

3.23 MB like that.

if Round($size,3)

3.233 MB

Thank you close the topic , as answer...

Share this post


Link to post
Share on other sites

teris1994, you can mark your own topic as answered. Just highlight JohnOne's post as the correct answer, and amend the topic title in your initial post with (Resolved)


√-1 2^3 ∑ π, and it was delicious!

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  
Followers 0