Click or drag to resize

DimensionfulQuantity Methods

The DimensionfulQuantity type exposes the following members.

Methods
 NameDescription
Public methodAbs Get the absolute value of this quantity.
Public methodStatic memberAbs(DimensionfulQuantity) 
Public methodAsQuantityIn(IPrefixedUnit)Converts this quantity to another quantity in the provided prefixed unit.
Public methodAsQuantityIn(IUnit)Converts this quantity to another quantity in the provided unit (without prefix).
Public methodAsQuantityIn(SIPrefix, IUnit)Converts this quantity to another quantity in the provided unit, with the provided prefix.
Public methodAsValueIn(IPrefixedUnit)Converts this quantity to its numerical value in the given unit, with the given prefix.
Public methodAsValueIn(IUnit)Converts this quantity to its numerical value in the given unit (without prefix).
Public methodAsValueIn(SIPrefix, IUnit)Converts this quantity to its numerical value in the given unit, with the given prefix.
Public methodCompareTo(DimensionfulQuantity)Compares this quanitity to another quantity.
Public methodCompareTo(Object)Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
Public methodEquals(DimensionfulQuantity)Indicates whether the current object is equal to another object of the same type.
Public methodEquals(Object)Indicates whether this instance and a specified object are equal.
(Overrides ValueTypeEquals(Object))
Public methodGetHashCodeReturns the hash code for this instance.
(Overrides ValueTypeGetHashCode)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodIsEqualInValuePrefixUnitDetermines whether this instance is equal to another quanity in all three components (value, prefix and unit). This is not a comparison for the physical equality of the quantities.
Public methodStatic memberMax 
Public methodStatic memberMin 
Public methodStatic memberRoundUpOrDown 
Public methodToStringReturns the fully qualified type name of this instance.
(Overrides ValueTypeToString)
Public methodToString(String, IFormatProvider)Formats the value of the current instance using the specified format.
Public methodWithNewValue Creates an instance with a new value, and with the same prefix and unit as this quantity.
Top
Extension Methods
 NameDescription
Public Extension MethodCheckUnitCompatibleWith Checks whether the quantity x has the expected expectedUnit, and if not, throws an ArgumentException.
(Defined by DimensionfulQuantityExtensions)
Top
See Also