There is a rounding error when displaying file sizes. The engine omits digits instead of rounding values.
Two text files were created:
- test size 1023bytes.txt
- test size 1024bytes.txt
One is exactly 1kB (1024B) large and the other is (1kB - 1B = 1023B) large. Mathematically their size should be displayed as follows:
- test size 1023bytes.txt: 1023B = 0.99902kB = 0.999kB = 1.00kB = 1.0kB
- test size 1024bytes.txt: 1024B = 1.00000kB = 1.00kB = 1.0kB
But instead, the size of the smaller file is displayed:
- test size 1023bytes.txt: 1023B = 0.99kB = 0.9kB
Not the difference between the green expected and red displayed value.
See screenshots:
- test size 1023bytes.png
- test size 1024bytes.png
- test both files in x.xx notation.png
https://www.mediafire.com/folder/9wj6jsv9slmo8/test_file_size_TC_display