For thumbnail labels & tooltips as well as HTML output and the information shown in fullscreen mode I prefer the <Size> over the <Size KB> variables.
My request would be that the values for <Size> are formatted as 1.234.567 bytes rather than 1234567 bytes to make them easier to read.
Format of <Size> variables
Moderators: helmut, XnTriq, xnview

I prefered <Size Kib> : see hereI prefer the <Size> over the <Size KB>
Why not 1,234,567 ? or 1 234 567 the only international admitted !<Size> are formatted as 1.234.567 bytes rather than 1234567 bytes
Friendly

Paul
L'important n'est pas de convaincre, mais de donner à réfléchir.
The important thing is not to convince, but to incite to think.
1,77245385090552... •
The important thing is not to convince, but to incite to think.
1,77245385090552... •
Agree !
—> ouistiti
Hello Paul !
• Indeed, the ouistiti Prof of Maths is right ! I agree !
- In Total Commander, we have the advantage to choose the units (and the capability to correct the wrong ones) ! …
Friendly,
Claude
Clo

• Indeed, the ouistiti Prof of Maths is right ! I agree !

- In Total Commander, we have the advantage to choose the units (and the capability to correct the wrong ones) ! …

Claude
Clo
Old user ON SELECTIVE STRIKE till further notice •
- foxyshadis
- Posts: 395
- Joined: Sat Nov 18, 2006 8:57 am
I assume 1.234.567 is your system default locale style, right? In that case, what would be a much simpler way to please all (most?) users is to just run the number part through GetNumberFormat:
sprintf(sTemp,"%d",size);
GetNumberFormat(LOCALE_USER_DEFAULT,0,sTemp,NULL,sFormatted,sizeof(sFormatted));
sprintf(sOut,"Size: %s",sFormatted);
iirc...
Some might prefer plain numbers, but then again, that's what the locale settings are there for.
[btw, I mean this for all numeric values, not just that one, of course.]
sprintf(sTemp,"%d",size);
GetNumberFormat(LOCALE_USER_DEFAULT,0,sTemp,NULL,sFormatted,sizeof(sFormatted));
sprintf(sOut,"Size: %s",sFormatted);
iirc...
Some might prefer plain numbers, but then again, that's what the locale settings are there for.
[btw, I mean this for all numeric values, not just that one, of course.]
Thanks for your comments, guys.

One of the main reasons why I'm always going for bytes is to avoid the confusion caused by conflicting interpretations of kilobyte.

When I posted my request I had no one particular style in mind. Any marker — be it period, comma or apostrophe — would improve readability.
But in addition to that I'd like to be able to customize <Size[]> & <Size KB[]> with a syntax scheme (like the one for <Date>) which overrides the system defaults. Especially for “Web page Create” that should come in handy, don't you think?
Forum references:
I know you do.ouistiti wrote:I prefered <Size Kib> : see hereI prefer the <Size> over the <Size KB>

One of the main reasons why I'm always going for bytes is to avoid the confusion caused by conflicting interpretations of kilobyte.
Well, a look at your forum signature tells me that you would opt for commas as decimal separator (and probably blank spaces to separate every third digit), while my instincts tell me that it's not a very good idea to get into an argument over numbers (or number formatting) with our resident math professor.ouistiti wrote:Why not 1,234,567 ? or 1 234 567 the only international admitted !<Size> are formatted as 1.234.567 bytes rather than 1234567 bytes

When I posted my request I had no one particular style in mind. Any marker — be it period, comma or apostrophe — would improve readability.
This is exactly what I'm after! <Size> & <Size KB> should be formatted according to the user's system locale settings.foxyshadis wrote:In that case, what would be a much simpler way to please all (most?) users is to just run the number part through GetNumberFormat:
But in addition to that I'd like to be able to customize <Size[]> & <Size KB[]> with a syntax scheme (like the one for <Date>) which overrides the system defaults. Especially for “Web page Create” that should come in handy, don't you think?
Code: Select all
<Filename With Ext> image.bmp
<Width>×<Height>×<BPP> · <Size [#'###'###]> 1024×768×24 · 2'359'350
<Modified Date [d/b/Y H:M:S]> 30/Feb/2007 20:07:30
- Generate file listing
- Batch Rename: How to change the date format (FAQ)
- Filesize in bytes
- Suggestion: Size in KB in right-click preview!
- HTML template - file size
- National Institute of Standards and Technology (NIST): Guide for the Use of the International System of Units (SI) » Grouping digits
- Microsoft GlobalDev: Globalization Step-by-Step » Number Formatting
- MSDN Magazine: Locale Hero — Enable Global Apps With Locale Builder And Windows Vista » Numbers, Currency, and Text
- appTranslator Blog: GetNumberFormat() was 25 years late
- Ask Dr. Math: Writing Commas in Numbers
- Jukka “Yucca” Korpela: Math in HTML (and CSS) » Grouping digits and using “thinner spaces”
- foxyshadis
- Posts: 395
- Joined: Sat Nov 18, 2006 8:57 am