This question is relaetd to This question, on using some of the windows explorer features automatically inside a Delphi application.
Is there a way to format an integer using the metrix prefixes automatically in Delphi? Somehow to automatically obtain a result like windows explorer gives? I mean converting 1024 to 1.0 K automatically.
let's say something like
FormatMetric('FileSize = %d', [26112], 1,'B')
// where the third parameter is the number of decimal digits
// and the fourth is the string that is appended
will return
25.5 KB
Of course I can code this, but is there in the RTL something like this?