FilesSizeConvert Method

Converts the length in bytes into the indicated unit based on the exponent (1 - KB, 2 - MB, 3 - GB, ...).

Definition

Namespace: Aliquo.Core
Assembly: Aliquo.Core (in Aliquo.Core.dll) Version: 5.0.9179.22651
C#
public static double SizeConvert(
	long size,
	byte exp
)

Parameters

size  Int64
The size of the file in bytes.
exp  Byte
The exponent to determine the unit conversion.

Return Value

Double
Double with the length in bytes into the indicated unit.

See Also