Interface IPrefix
- Namespace
- Codebelt.Unitify
- Assembly
- Codebelt.Unitify.dll
Defines a unit prefix that can can be expressed as either a multiple or a submultiple of the unit of measurement.
public interface IPrefix
- Extension Methods
Properties
Base
Gets the number to be raised of the unit prefix.
double Base { get; }
Property Value
- Double
The number to be raised of the unit prefix.
Exponent
Gets the exponent of the unit prefix.
double Exponent { get; }
Property Value
- Double
The exponent of the unit prefix.
Multiplier
Gets the unit prefix multiplier.
double Multiplier { get; }
Property Value
- Double
The unit prefix multiplier.
Name
Gets the name of the unit prefix.
string Name { get; }
Property Value
- String
The name of the unit prefix.
Symbol
Gets the symbol of the unit prefix.
string Symbol { get; }
Property Value
- String
The symbol of the unit prefix.
Methods
ToBaseValue(Double)
Converts the prefixValue
back to a unit base value.
double ToBaseValue(double prefixValue)
Parameters
prefixValue
DoubleThe value of the unit prefix.
Returns
- Double
A System.Double that represents a unit base value.
ToPrefixValue(Double)
Converts the unit base baseValue
to a unit prefix value.
double ToPrefixValue(double baseValue)
Parameters
baseValue
DoubleThe value of the base unit.
Returns
- Double
A System.Double that represents a unit prefix value.