Function Reference


_WinAPI_StrFormatKBSize

Converts a numeric value into a string that represents the number expressed as a size value in kilobytes

#include <WinAPIConv.au3>
_WinAPI_StrFormatKBSize ( $iSize )

Parameters

$iSize The numeric value to be converted.

Return Value

Success: The converted string.
Failure: Empty string and sets the @error flag to non-zero.

See Also

Search StrFormatKBSize in MSDN Library.

Example

#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