[TC 11.56] File size values not rounded, but truncated

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
Slam
Junior Member
Junior Member
Posts: 26
Joined: 2013-03-25, 11:43 UTC

[TC 11.56] File size values not rounded, but truncated

Post by *Slam »

When converting to higher orders of bytes, it appears that the file size values ​​are not rounded, but only truncated (see attached screenshot):

Image: https://imgur.com/a/H8mkV52

https://www.unitjuggler.com/convert-memory-from-B-to-KiB.html?val=1195
https://www.unitjuggler.com/convert-memory-from-B-to-KiB.html?val=217087
NoBoDy Is PeRfEcT! ™
User avatar
Dalai
Power Member
Power Member
Posts: 10290
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: [TC 11.56] File size values not rounded, but truncated

Post by *Dalai »

The Properties window in your screenshot is provided by Windows, not by TC. There's nothing TC can do, and it's no TC bug. The same window with the exact same values appears when showing the file properties via Explorer.
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
User avatar
petermad
Power Member
Power Member
Posts: 17263
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 11.56] File size values not rounded, but truncated

Post by *petermad »

2Slam
The size in the two Properties windows in your screenshot are provided by Windows - and you can see that they show the same size as TC does in the red rectangle in your screenshot.

Both Windows and TC shows the truncated (floor) value instead of the rounded value. I guess TC does that to not confuse people when they compare the sizes to sizes displayed by Windows (Explorer, Properties dialogs).
License #524 1994
Danish TC Translator
TC 11.57 32+64bit on Windows XP 32bit & Windows 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1413b
TC 3.62 on Android 6, 13, 15 & 16
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 52790
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.56] File size values not rounded, but truncated

Post by *ghisler(Author) »

Not a TC bug, as Dalai and petermad have explained.

Moderator message from: ghisler(Author) » 2026-04-24, 06:44 UTC

Moved to English forum
Author of Total Commander
https://www.ghisler.com
User avatar
Slam
Junior Member
Junior Member
Posts: 26
Joined: 2013-03-25, 11:43 UTC

Re: [TC 11.56] File size values not rounded, but truncated

Post by *Slam »

Thank you very much for the explanation.
NoBoDy Is PeRfEcT! ™
Post Reply