Class NiemXsfloat
A data type that is patterned after the IEEE single-precision 32-bit floating point type [IEEE 754-1985]. The basic value space of float consists of the values m x 2^e, where m is an integer whose absolute value is less than 2^24, and e is an integer between -149 and 104, inclusive. In addition to the basic value space described above, the value space of float also contains the following three special values: positive and negative infinity and not-a-number (NaN).
Inheritance
Implements
Inherited Members
Namespace: NiemTypes
Assembly: EidoLib.dll
Syntax
[DataContract]
public class NiemXsfloat : IEquatable<NiemXsfloat>
Properties
Context
niem-xsfloat JSON-LD context
Declaration
[DataMember(Name = "@context")]
public NiemXsfloat.ContextEnum? Context { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<NiemXsfloat.ContextEnum> | niem-xsfloat JSON-LD context |
Value
Gets or Sets Value
Declaration
[DataMember(Name = "value")]
public decimal? Value { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Decimal> |
Methods
Equals(NiemXsfloat)
Returns true if NiemXsfloat instances are equal
Declaration
public bool Equals(NiemXsfloat other)
Parameters
Type | Name | Description |
---|---|---|
NiemXsfloat | other | Instance of NiemXsfloat to be compared |
Returns
Type | Description |
---|---|
System.Boolean | Boolean |
Equals(Object)
Returns true if objects are equal
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | Object to be compared |
Returns
Type | Description |
---|---|
System.Boolean | Boolean |
Overrides
GetHashCode()
Gets the hash code
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | Hash code |
Overrides
ToJson()
Returns the JSON string presentation of the object
Declaration
public string ToJson()
Returns
Type | Description |
---|---|
System.String | JSON string presentation of the object |
ToString()
Returns the string presentation of the object
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | String presentation of the object |
Overrides
Operators
Equality(NiemXsfloat, NiemXsfloat)
Declaration
public static bool operator ==(NiemXsfloat left, NiemXsfloat right)
Parameters
Type | Name | Description |
---|---|---|
NiemXsfloat | left | |
NiemXsfloat | right |
Returns
Type | Description |
---|---|
System.Boolean |
Inequality(NiemXsfloat, NiemXsfloat)
Declaration
public static bool operator !=(NiemXsfloat left, NiemXsfloat right)
Parameters
Type | Name | Description |
---|---|---|
NiemXsfloat | left | |
NiemXsfloat | right |
Returns
Type | Description |
---|---|
System.Boolean |