Hello,
I am calulating zip file size using below formula
new System.IO.FileInfo(path).Length
and this is returning in kb.
i want size in MB so i am deviding value by 1000 and assigning to variable MB which is having double datatype.
now i am getiing value like 25556.989 this if file size is 25 mb
but i only want 25 from this number .
how can i get that?
please check below ss.
path - string - my file path
filesize - int64 - new System.IO.FileInfo(path).Length
MB - double - filesize/1000
Help me to solve this issue