Hi,
it probably is very stupid but here it goes:
I have a read filesize of e.g. 203.839453409834 KB in $final_size. I want to round of the number to in this case,
204 KB. I tried splitting the var at the point into @ARRAY and then display @ARRAY[0] but that does not work.
This is what I did:
$final_read = $bytes_read/1024;
@ARRAY = split(/./,$final_read);
$final_read = @ARRAY[0];
When I try to display $final_read it is empty. Please help.
it probably is very stupid but here it goes:
I have a read filesize of e.g. 203.839453409834 KB in $final_size. I want to round of the number to in this case,
204 KB. I tried splitting the var at the point into @ARRAY and then display @ARRAY[0] but that does not work.
This is what I did:
$final_read = $bytes_read/1024;
@ARRAY = split(/./,$final_read);
$final_read = @ARRAY[0];
When I try to display $final_read it is empty. Please help.