Table of Contents

Class PrefixMultiple

Namespace
Cuemon
Assembly
Cuemon.Core.dll

Represents the base class from which all implementations of unit prefix that can can be expressed as a either a multiple or a submultiple of the unit of measurement should derive. Implements the IPrefixMultiple

public abstract class PrefixMultiple : IPrefixMultiple
Inheritance
Object
PrefixMultiple
Implements
Derived

Constructors

PrefixMultiple(String, String, Double, Double)

Initializes a new instance of the PrefixMultiple struct.

protected PrefixMultiple(string name, string symbol, double value, double exponent)

Parameters

name String

The name of the binary unit.

symbol String

The symbol of the the unit prefix.

value Double

The number to be raised to a power.

exponent Double

The number that specifies a power.

Fields

None

Defines a prefix multiple of none (0).

public static readonly IPrefixMultiple None

Field Value

IPrefixMultiple

Properties

Multiplier

Gets the unit prefix multiplier.

public double Multiplier { get; }

Property Value

Double

The unit prefix multiplier.

Name

Gets the name of the unit prefix.

public string Name { get; }

Property Value

String

The name of the unit prefix.

Symbol

Gets the symbol of the unit prefix.

public string Symbol { get; }

Property Value

String

The symbol of the unit prefix.

Methods

ToBaseValue(Double)

Converts the unit prefixValue back to a unit base value.

public double ToBaseValue(double prefixValue)

Parameters

prefixValue Double

The value of the unit prefix.

Returns

Double

A System.Double that represents a unit base value.

ToPrefixValue(Double)

Converts the unit base value to a unit prefix value.

public double ToPrefixValue(double value)

Parameters

value Double

The value of the base unit.

Returns

Double

A System.Double that represents a unit prefix value.

ToString()

Returns a System.String that represents this instance.

public override string ToString()

Returns

String

A System.String that represents this instance.

See Also