This question is related to This question , using some functions of Windows Explorer automatically inside a Delphi application.
Is there a way to format an integer using metrix prefixes automatically in Delphi? Somehow automatically get the result, as Windows Explorer gives? I mean converting 1024 to 1.0 K automatically.
let's say something like
FormatMetric('FileSize = %d', [26112], 1,'B')
will return
25.5 KB
Of course I can encode this, but is there something like this in RTL?
source
share