Click or drag to resize

SI2 Class

Defines constant factors based on 1024 for related binary SI units of measure used in computational measurements.
Inheritance Hierarchy
SystemObject
  GSF.UnitsSI2

Namespace: GSF.Units
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.207-beta+1781b796b2aa7a54013a031eb432fe4ccee31867
Syntax
public static class SI2
View Source

The SI2 type exposes the following members.

Properties
 NameDescription
Public propertyStatic memberFactors Gets an array of all the defined binary SI unit factors ordered from least (Kilo) to greatest (Exa).
Public propertyStatic memberIECNames Gets an array of all the defined IEC binary unit factor SI names ordered from least (Kibi) to greatest (Exbi).
Public propertyStatic memberIECSymbols Gets an array of all the defined IEC binary unit factor SI prefix symbols ordered from least (Kibi) to greatest (Exbi).
Public propertyStatic memberNames Gets an array of all the defined common binary unit factor SI names ordered from least (Kilo) to greatest (Exa).
Public propertyStatic memberSymbols Gets an array of all the defined common binary unit factor SI prefix symbols ordered from least (Kilo) to greatest (Exa).
Top
Methods
 NameDescription
Public methodStatic memberToScaledString(Int64, String, String, Int64, Int64) Turns the given number of units (e.g., bytes) into a textual representation with an appropriate unit scaling and common named representation (e.g., KB, MB, GB, TB, etc.).
Public methodStatic memberToScaledString(Int64, String, String, Int64, Int64) Turns the given number of units (e.g., bytes) into a textual representation with an appropriate unit scaling and common named representation (e.g., KB, MB, GB, TB, etc.).
Public methodStatic memberToScaledString(Int64, Int32, String, String, Int64, Int64) Turns the given number of units (e.g., bytes) into a textual representation with an appropriate unit scaling and common named representation (e.g., KB, MB, GB, TB, etc.).
Public methodStatic memberToScaledString(Int64, String, String, String, Int32, Int64, Int64) Turns the given number of units (e.g., bytes) into a textual representation with an appropriate unit scaling given string array of factor names or symbols.
Top
Fields
 NameDescription
Public fieldStatic memberExa 1 exa, binary (E) = 1,152,921,504,606,846,976
Public fieldStatic memberExbi 1 exbi (Ei) = 1,152,921,504,606,846,976
Public fieldStatic memberGibi 1 gibi (Gi) = 1,073,741,824
Public fieldStatic memberGiga 1 giga, binary (G) = 1,073,741,824
Public fieldStatic memberKibi 1 kibi (Ki) = 1,024
Public fieldStatic memberKilo 1 kilo, binary (K) = 1,024
Public fieldStatic memberMebi 1 mebi (Mi) = 1,048,576
Public fieldStatic memberMega 1 mega, binary (M) = 1,048,576
Public fieldStatic memberPebi 1 pebi (Pi) = 1,125,899,906,842,624
Public fieldStatic memberPeta 1 peta, binary (P) = 1,125,899,906,842,624
Public fieldStatic memberTebi 1 tebi (Ti) = 1,099,511,627,776
Public fieldStatic memberTera 1 tera, binary (T) = 1,099,511,627,776
Top
Remarks
See NIST Reference for information on IEC standard names.
See Also