Reference
Number Members
Represents the base type of any numerical value.
Reference
Number Members
- Type
- Number
- Namespace
- Opc.UaFx
- Assembly
- Opc.UaFx.Advanced.dll
- Package
- Opc.UaFx.Advanced v2.59.0
- Also in
- Opc.UaFx.Client
Methods
CompareTo
| Overload | Description |
|---|---|
| CompareTo( | Compares the current Number with the other. |
| CompareTo( | Compares the current Number with another Number. |
CompareTo(object)
Compares the current Number with the other.
public int CompareTo(object other)Public Function CompareTo(other As Object) As IntegerParameters
| Name | Type | Description |
|---|---|---|
other | Object | The Number to compare with this Number. |
Returns
A 32-Number signed integer that indicates the relative order of the objects being compared (CompareTo(object)).
Implements
CompareTo(Number)
Compares the current Number with another Number.
public int CompareTo(Number other)Public Function CompareTo(other As Number) As IntegerParameters
| Name | Type | Description |
|---|---|---|
other | Number | The Number to compare with this Number. |
Returns
A 32-Number signed integer that indicates the relative order of the objects being compared (CompareTo(T)).
Implements
Equals
| Overload | Description |
|---|---|
| Equals( | Determines whether the specified other is equal to this Number. |
| Equals( | Determines whether the specified other is equal to this Number. |
Equals(object)
Determines whether the specified other is equal to this Number.
public override bool Equals(object other)Public Overrides Function Equals(other As Object) As BooleanParameters
| Name | Type | Description |
|---|---|---|
other | Object | The Number to compare to the current Number. |
Returns
The value true if the specified Number is equal to the current Number; otherwise the value false.
Overrides
Equals(Number)
Determines whether the specified other is equal to this Number.
public bool Equals(Number other)Public Function Equals(other As Number) As BooleanParameters
| Name | Type | Description |
|---|---|---|
other | Number | The Number to compare to the current Number. |
Returns
The value true if the specified Number is equal to the current Number; otherwise the value false.
Implements
GetHashCode
Retrieves a hash code for this Number.
public override int GetHashCode()Public Overrides Function GetHashCode() As IntegerReturns
An int that contains the hash code for the Number.
Overrides
GetTypeCode
Returns the type code for the Number value type.
public TypeCode GetTypeCode()Public Function GetTypeCode() As TypeCodeReturns
The enumerated constant Boolean.
Implements
ToString
| Overload | Description |
|---|---|
| ToString() | Converts the numeric value of this instance to its equivalent string representation. |
| ToString( | Converts the numeric value of this instance to its equivalent string representation using the specified culture-specific format information. |
| ToString( | Converts the numeric value of this instance to its equivalent string representation, using the specified format. |
| ToString( | Converts the numeric value of this instance to its equivalent string representation using the specified format and culture-specific format information. |
ToString()
Converts the numeric value of this instance to its equivalent string representation.
public override string ToString()Public Overrides Function ToString() As StringReturns
The string representation of the value of this instance.
Overrides
ToString(IFormatProvider)
Converts the numeric value of this instance to its equivalent string representation using the specified culture-specific format information.
public string ToString(IFormatProvider provider)Public Function ToString(provider As IFormatProvider) As StringParameters
| Name | Type | Description |
|---|---|---|
provider | IFormatProvider | An object that supplies culture-specific formatting information. |
Returns
The string representation of the value of this instance, as specified by provider.
Implements
ToString(string)
Converts the numeric value of this instance to its equivalent string representation, using the specified format.
public string ToString(string format)Public Function ToString(format As String) As StringParameters
| Name | Type | Description |
|---|---|---|
format | String | A standard or custom numeric format string. |
Returns
The string representation of the value of this instance as specified by format.
Exceptions
| Exception | Condition |
|---|---|
| FormatException | The format is invalid. |
ToString(string, IFormatProvider)
Converts the numeric value of this instance to its equivalent string representation using the specified format and culture-specific format information.
public string ToString(string format, IFormatProvider provider)Public Function ToString(
format As String,
provider As IFormatProvider) As StringParameters
| Name | Type | Description |
|---|---|---|
format | String | A standard or custom numeric format string. |
provider | IFormatProvider | An object that supplies culture-specific formatting information. |
Returns
The string representation of the value of this instance as specified by format and provider.
Exceptions
| Exception | Condition |
|---|---|
| FormatException | The format is invalid. |
Operators
Equality
Returns a value indicating whether two values of Number are equal.
public static bool operator ==(Number left, Number right)Public Shared Operator =(left As Number, right As Number) As BooleanParameters
| Name | Type | Description |
|---|---|---|
left | Number | The first Number to compare. |
right | Number | The second Number to compare. |
Returns
The value true if left and right are equal; otherwise the value false.
Explicit
| Overload | Description |
|---|---|
| explicit operator sbyte( | Converts a Number to a sbyte value. |
| explicit operator byte( | Converts a Number to a byte value. |
| explicit operator short( | Converts a Number to a short value. |
| explicit operator ushort( | Converts a Number to a ushort value. |
| explicit operator int( | Converts a Number to a int value. |
| explicit operator uint( | Converts a Number to a uint value. |
| explicit operator long( | Converts a Number to a long value. |
| explicit operator ulong( | Converts a Number to a ulong value. |
| explicit operator float( | Converts a Number to a float value. |
| explicit operator double( | Converts a Number to a double value. |
| explicit operator decimal( | Converts a Number to a decimal value. |
explicit operator sbyte(Number)
Converts a Number to a sbyte value.
public static explicit operator sbyte(Number value)Public Shared Narrowing Operator CType(value As Number) As SByteParameters
| Name | Type | Description |
|---|---|---|
value | Number | The Number value. |
Returns
The sbyte value of the value.
explicit operator byte(Number)
Converts a Number to a byte value.
public static explicit operator byte(Number value)Public Shared Narrowing Operator CType(value As Number) As ByteParameters
| Name | Type | Description |
|---|---|---|
value | Number | The Number value. |
Returns
The byte value of the value.
explicit operator short(Number)
Converts a Number to a short value.
public static explicit operator short(Number value)Public Shared Narrowing Operator CType(value As Number) As ShortParameters
| Name | Type | Description |
|---|---|---|
value | Number | The Number value. |
Returns
The short value of the value.
explicit operator ushort(Number)
Converts a Number to a ushort value.
public static explicit operator ushort(Number value)Public Shared Narrowing Operator CType(value As Number) As UShortParameters
| Name | Type | Description |
|---|---|---|
value | Number | The Number value. |
Returns
The ushort value of the value.
explicit operator int(Number)
Converts a Number to a int value.
public static explicit operator int(Number value)Public Shared Narrowing Operator CType(value As Number) As IntegerParameters
| Name | Type | Description |
|---|---|---|
value | Number | The Number value. |
Returns
The int value of the value.
explicit operator uint(Number)
Converts a Number to a uint value.
public static explicit operator uint(Number value)Public Shared Narrowing Operator CType(value As Number) As UIntegerParameters
| Name | Type | Description |
|---|---|---|
value | Number | The Number value. |
Returns
The uint value of the value.
explicit operator long(Number)
Converts a Number to a long value.
public static explicit operator long(Number value)Public Shared Narrowing Operator CType(value As Number) As LongParameters
| Name | Type | Description |
|---|---|---|
value | Number | The Number value. |
Returns
The long value of the value.
explicit operator ulong(Number)
Converts a Number to a ulong value.
public static explicit operator ulong(Number value)Public Shared Narrowing Operator CType(value As Number) As ULongParameters
| Name | Type | Description |
|---|---|---|
value | Number | The Number value. |
Returns
The ulong value of the value.
explicit operator float(Number)
Converts a Number to a float value.
public static explicit operator float(Number value)Public Shared Narrowing Operator CType(value As Number) As SingleParameters
| Name | Type | Description |
|---|---|---|
value | Number | The Number value. |
Returns
The float value of the value.
explicit operator double(Number)
Converts a Number to a double value.
public static explicit operator double(Number value)Public Shared Narrowing Operator CType(value As Number) As DoubleParameters
| Name | Type | Description |
|---|---|---|
value | Number | The Number value. |
Returns
The double value of the value.
explicit operator decimal(Number)
Converts a Number to a decimal value.
public static explicit operator decimal(Number value)Public Shared Narrowing Operator CType(value As Number) As DecimalParameters
| Name | Type | Description |
|---|---|---|
value | Number | The Number value. |
Returns
The decimal value of the value.
GreaterThan
Determines whether the first specified Number value is greater than the second specified Number value.
public static bool operator >(Number left, Number right)Public Shared Operator >(left As Number, right As Number) As BooleanParameters
| Name | Type | Description |
|---|---|---|
left | Number | The first Number value. |
right | Number | The second Number value. |
Returns
The value true if left is greater than right; otherwise, false.
GreaterThanOrEqual
Determines whether the first specified Number value is greater than or equal to the second specified Number value.
public static bool operator >=(Number left, Number right)Public Shared Operator >=(left As Number, right As Number) As BooleanParameters
| Name | Type | Description |
|---|---|---|
left | Number | The first Number value. |
right | Number | The second Number value. |
Returns
The value true if left is greater than or equal to right; otherwise, false.
Implicit
| Overload | Description |
|---|---|
| implicit operator Number( | Converts a sbyte to a Number value. |
| implicit operator Number( | Converts a byte to a Number value. |
| implicit operator Number( | Converts a short to a Number value. |
| implicit operator Number( | Converts a ushort to a Number value. |
| implicit operator Number( | Converts a int to a Number value. |
| implicit operator Number( | Converts a uint to a Number value. |
| implicit operator Number( | Converts a long to a Number value. |
| implicit operator Number( | Converts a ulong to a Number value. |
| implicit operator Number( | Converts a float to a Number value. |
| implicit operator Number( | Converts a double to a Number value. |
| implicit operator Number( | Converts a decimal to a Number value. |
implicit operator Number(sbyte)
Converts a sbyte to a Number value.
public static implicit operator Number(sbyte value)Public Shared Widening Operator CType(value As SByte) As NumberParameters
| Name | Type | Description |
|---|---|---|
value | SByte | The sbyte value. |
Returns
The Number value from the value.
implicit operator Number(byte)
Converts a byte to a Number value.
public static implicit operator Number(byte value)Public Shared Widening Operator CType(value As Byte) As NumberParameters
| Name | Type | Description |
|---|---|---|
value | Byte | The byte value. |
Returns
The Number value from the value.
implicit operator Number(short)
Converts a short to a Number value.
public static implicit operator Number(short value)Public Shared Widening Operator CType(value As Short) As NumberParameters
| Name | Type | Description |
|---|---|---|
value | Int16 | The short value. |
Returns
The Number value from the value.
implicit operator Number(ushort)
Converts a ushort to a Number value.
public static implicit operator Number(ushort value)Public Shared Widening Operator CType(value As UShort) As NumberParameters
| Name | Type | Description |
|---|---|---|
value | UInt16 | The ushort value. |
Returns
The Number value from the value.
implicit operator Number(int)
Converts a int to a Number value.
public static implicit operator Number(int value)Public Shared Widening Operator CType(value As Integer) As NumberParameters
| Name | Type | Description |
|---|---|---|
value | Int32 | The int value. |
Returns
The Number value from the value.
implicit operator Number(uint)
Converts a uint to a Number value.
public static implicit operator Number(uint value)Public Shared Widening Operator CType(value As UInteger) As NumberParameters
| Name | Type | Description |
|---|---|---|
value | UInt32 | The uint value. |
Returns
The Number value from the value.
implicit operator Number(long)
Converts a long to a Number value.
public static implicit operator Number(long value)Public Shared Widening Operator CType(value As Long) As NumberParameters
| Name | Type | Description |
|---|---|---|
value | Int64 | The long value. |
Returns
The Number value from the value.
implicit operator Number(ulong)
Converts a ulong to a Number value.
public static implicit operator Number(ulong value)Public Shared Widening Operator CType(value As ULong) As NumberParameters
| Name | Type | Description |
|---|---|---|
value | UInt64 | The ulong value. |
Returns
The Number value from the value.
implicit operator Number(float)
Converts a float to a Number value.
public static implicit operator Number(float value)Public Shared Widening Operator CType(value As Single) As NumberParameters
| Name | Type | Description |
|---|---|---|
value | Single | The float value. |
Returns
The Number value from the value.
implicit operator Number(double)
Converts a double to a Number value.
public static implicit operator Number(double value)Public Shared Widening Operator CType(value As Double) As NumberParameters
| Name | Type | Description |
|---|---|---|
value | Double | The double value. |
Returns
The Number value from the value.
implicit operator Number(decimal)
Converts a decimal to a Number value.
public static implicit operator Number(decimal value)Public Shared Widening Operator CType(value As Decimal) As NumberParameters
| Name | Type | Description |
|---|---|---|
value | Decimal | The decimal value. |
Returns
The Number value from the value.
Inequality
Returns a value indicating whether two values of Number are not equal.
public static bool operator !=(Number left, Number right)Public Shared Operator <>(left As Number, right As Number) As BooleanParameters
| Name | Type | Description |
|---|---|---|
left | Number | The first Number to compare. |
right | Number | The second Number to compare. |
Returns
The value true if left and right are not equal; otherwise the value false.
LessThan
Determines whether the first specified Number value is less than the second specified Number value.
public static bool operator <(Number left, Number right)Public Shared Operator <(left As Number, right As Number) As BooleanParameters
| Name | Type | Description |
|---|---|---|
left | Number | The first Number value. |
right | Number | The second Number value. |
Returns
The value true if left is less than right; otherwise the value false.
LessThanOrEqual
Determines whether the first specified Number value is less than or equal to the second Number value.
public static bool operator <=(Number left, Number right)Public Shared Operator <=(left As Number, right As Number) As BooleanParameters
| Name | Type | Description |
|---|---|---|
left | Number | The first Number value. |
right | Number | The second Number value. |
Returns
The value true if left is less than or equal to right; otherwise the value false.

