Function Reference


_WinAPI_StrFormatByteSizeEx

Converts a numeric value into a string that represents the number expressed as separated groups of digits to the left of the decimal

#include <WinAPIConv.au3>
_WinAPI_StrFormatByteSizeEx ( $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.

Example

#include <WinAPIConv.au3>

Local $aVal[5] = [532, 1340, 23506, 2400016, 2400000000]

For $i = 0 To 4
        ConsoleWrite(StringFormat('%10s %19s', $aVal[$i], _WinAPI_StrFormatByteSizeEx($aVal[$i])) & @CRLF)
Next