Pressure(Double, Unit, MetricExponent) Constructor
Creates a new instance of
Pressure
with a particular value and
Unit
assuming that
value is already raised or lowered to the
power of
exponent.
Namespace: InnerDrive.QuantitativeAssembly: InnerDrive.Quantitative (in InnerDrive.Quantitative.dll) Version: 5.2.9017.0
[JsonConstructorAttribute]
public Pressure(
double value,
Unit unit,
MetricExponent exponent = MetricExponent.Unit
)
Parameters
- value Double
- The value of the Pressure
to use.
- unit Unit
- The Unit to use.
- exponent MetricExponent (Optional)
- If applicable to unit, the
MetricExponent that value is assumed
to be already.
The following example creates a
Pressure of 100 kPa:
Unit unit = new Pascal();
MetricExponent exponent = MetricExponent.Kilo;
double value = 100d;
Pressure kiloPascals = new Pressure(value, unit, exponent);