file size acting strange in IM

Started by neal, August 06, 2025, 03:07:45 PM

Previous topic - Next topic

neal

The file sizes are sometimes shown normal but sometimes display as a decimal. Please see attachment. I don't want a decimal display.


Mario

IMatch uses a locale-sensitive format (aka the numeric format set for your user account in Windows) to format numbers, dates, times and file sizes.

The default "Size" attribute available for File Window layouts uses the locale file size formatting (...KB, MB, GB), which has two decimals in many locales.

If you don't like this, use a custom template footer instead and use the {File.Size|cast:int} variable to force the file size into an integer without decimals. If you don't want bytes but KB or MB, us a math operation like this:

{File.Size|math:div,1024} KB

to get output in KB or

{File.Size|math:div,1048576} MB

See File Window Layouts to learn how to create and modify file window layouts.