Display of MB values

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
nagan
Posts: 302
Joined: Thu Apr 18, 2013 11:44 am

Display of MB values

Post by nagan »

I made a query size:1mb-2mb. Though the byte range is exact 1048576 to 2097152 ET records it as 1.01mb to 2.01mb in the size column. For Kb the exact values of 1kb to 2kb are displayed. Also for a file -properties explorer says it as 5.99mb whereas ET puts it has 6.00mb. Might be for this it is rounded also considering a third decimal. But for exact values why does it add 0.01 mb....
void
Developer
Posts: 16690
Joined: Fri Oct 16, 2009 11:31 pm

Re: Display of MB values

Post by void »

This is a rounding issue, fixed for the next beta update.

Thanks for the bug report.
vsub
Posts: 474
Joined: Sat Nov 12, 2011 11:51 am

Re: Display of MB values

Post by vsub »

Is this correct result:
Windows shows a files as
1,15 MB (1 208 844 bytes)
ET in mode
b - 1 208 844
kb - 1181
auto - 1.16
void
Developer
Posts: 16690
Joined: Fri Oct 16, 2009 11:31 pm

Re: Display of MB values

Post by void »

When using the kb size format, Everything rounds up with the following formula:

Code: Select all

kb = (size + 1023) / 1024
When using the "auto" size format there is an error rounding when the size is in the MB range.
I have fixed this for the next beta update.
Post Reply