Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
IBaseQuantity.cs
1namespace Waher.Script.Units
2{
6 public interface IBaseQuantity : IUnitCategory
7 {
11 string[] BaseUnits
12 {
13 get;
14 }
15
20 {
21 get;
22 }
23
32 bool ToReferenceUnit(ref double Magnitude, ref double NrDecimals, string BaseUnit, int Exponent);
33
42 bool FromReferenceUnit(ref double Magnitude, ref double NrDecimals, string BaseUnit, int Exponent);
43 }
44}
Represents an atomic unit.
Definition: AtomicUnit.cs:7
Interface for physical base quantities
Definition: IBaseQuantity.cs:7
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.
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.
string[] BaseUnits
Base Units supported.
AtomicUnit ReferenceUnit
Reference unit of category.
Interface for a category of units.
Definition: IUnitCategory.cs:7