Converts a numeric value into a string that represents the number expressed as a size value in kilobytes
#include <WinAPIConv.au3>
_WinAPI_StrFormatKBSize ( $iSize )
$iSize | The numeric value to be converted. |
Success: | The converted string. |
Failure: | Empty string and sets the @error flag to non-zero. |
Search StrFormatKBSize in MSDN Library.
#include <WinAPIConv.au3>
Local $aVal[3] = [23506, 2400016, 2400000000]
For $i = 0 To 2
ConsoleWrite(StringFormat('%10s %12s', $aVal[$i], _WinAPI_StrFormatKBSize($aVal[$i])) & @CRLF)
Next