function formatBytes($bytes, $precision = 2) { $units = array('B', 'KB', 'MB', 'GB', 'TB'); $bytes = max($bytes, 0); $pow = floor(($bytes ? log($bytes) : 0) ... ... <看更多>
Search
Search
function formatBytes($bytes, $precision = 2) { $units = array('B', 'KB', 'MB', 'GB', 'TB'); $bytes = max($bytes, 0); $pow = floor(($bytes ? log($bytes) : 0) ... ... <看更多>
... <看更多>
public struct Units {. public let bytes: Int64. public var kilobytes: Double {. return Double(bytes) / 1_024. } public var megabytes: Double {. ... <看更多>