Changeset 75 for oup/current/Code


Ignore:
Timestamp:
Jan 12, 2007, 12:36:52 AM (18 years ago)
Author:
alloc
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • oup/current/Code/Functions.pas

    r74 r75  
    213213
    214214function FormatFileSize(size: LongWord): String;
    215 begin
     215var
     216  floatformat: TFormatSettings;
     217begin
     218  floatformat.DecimalSeparator := '.';
    216219  if size >= 1000 * 1024 * 1024 then
    217220  begin
    218     Result := FloatToStrF(size / 1024 / 1024 / 1024, ffFixed, 5, 1) + ' GB';
     221    Result := FloatToStrF(size / 1024 / 1024 / 1024, ffFixed, 5, 1, floatformat) + ' GB';
    219222  end
    220223  else
     
    222225    if size >= 1000 * 1024 then
    223226    begin
    224       Result := FloatToStrF(size / 1024 / 1024, ffFixed, 5, 1) + ' MB';
     227      Result := FloatToStrF(size / 1024 / 1024, ffFixed, 5, 1, floatformat) + ' MB';
    225228    end
    226229    else
     
    228231      if size >= 1000 then
    229232      begin
    230         Result := FloatToStrF(size / 1024, ffFixed, 5, 1) + ' KB';
     233        Result := FloatToStrF(size / 1024, ffFixed, 5, 1, floatformat) + ' KB';
    231234      end
    232235      else
Note: See TracChangeset for help on using the changeset viewer.