20 public string Name =>
"Mass";
33 private static readonly
Unit reference =
new Unit(referenceUnit);
60 public bool ToReferenceUnit(ref
double Magnitude, ref
double NrDecimals,
string BaseUnit,
int Exponent)
70 k = Math.Pow(1e6, Exponent);
74 k = Math.Pow(1.66e-24, Exponent);
78 k = Math.Pow(450, Exponent);
86 NrDecimals -= Math.Log10(k);
99 public bool FromReferenceUnit(ref
double Magnitude, ref
double NrDecimals,
string BaseUnit,
int Exponent)
101 return this.
ToReferenceUnit(ref Magnitude, ref NrDecimals, BaseUnit, -Exponent);
Represents an atomic unit.
It is generally a measure of an object's resistance to changing its state of motion when a force is a...
string[] BaseUnits
Base Units supported.
bool FromReferenceUnit(ref double Magnitude, ref double NrDecimals, string BaseUnit, int Exponent)
Tries to convert a magnitude to a specified base unit, from the reference unit.
bool ToReferenceUnit(ref double Magnitude, ref double NrDecimals, string BaseUnit, int Exponent)
Tries to convert a magnitude from a specified base unit, to the reference unit.
Unit Reference
Reference unit of category.
AtomicUnit ReferenceUnit
Reference unit of base quantity.
Mass()
It is generally a measure of an object's resistance to changing its state of motion when a force is a...
string Name
Name of base quantity.
Interface for physical base quantities