[]
Returns the absolute value of a Unit expressed in Default units.
Throws exception if the operation cannot be performed.
public static implicit operator double(Unit value)
Type | Name | Description |
---|---|---|
Unit | value | The unit value to convert. |
Type | Description |
---|---|
double | The absolute value. |
Converts a unit value to a string.
public static implicit operator string(Unit value)
Type | Name | Description |
---|---|---|
Unit | value | The unit to convert. |
Type | Description |
---|---|
string | The string representing the unit value. |
public static implicit operator Unit(double value)
Type | Name | Description |
---|---|---|
double | value | The double value. |
Type | Description |
---|---|
Unit | The unit value. |
public static implicit operator Unit(int value)
Type | Name | Description |
---|---|---|
int | value | The integer value. |
Type | Description |
---|---|
Unit | The unit value. |
Converts a string to a Unit value (see Unit(string).
public static implicit operator Unit(string value)
Type | Name | Description |
---|---|---|
string | value | The string to convert. |
Type | Description |
---|---|
Unit | The unit value. |