Hello I made a updater that downloads update files but I always used bytes as indication now
I found a way to convert it to megabytes,
it works good but one little problem it returns HUGE numbers for example,
a file that is 20MB will be displayed as : 20.26496724167345 MB
How do I make this number a bit shorter like 20.26MB
This is the code that converts it to mb :
static double B2MB(long bytes)
{
return (bytes / 1024f) / 1024f;
}