Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Func _ByteSuffix($iBytes, $iRound = 2)
- Local $A, $aArray[9] = [" B", " KB", " MB", " GB", " TB", " PB", " EB", " ZB", " YB"]
- While $iBytes > 1023
- $A += 1
- $iBytes /= 1024
- WEnd
- Return Round($iBytes, $iRound) & $aArray[$A]
- EndFunc ;==>_ByteSuffix
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement