Class FloatNode
A Valued Node representing float values.
Implements
System.IEquatable<BaseLiteralNode>
System.IComparable<BaseLiteralNode>
System.IEquatable<LiteralNode>
System.IComparable<LiteralNode>
System.IComparable<INode>
System.IComparable<IBlankNode>
System.IComparable<IGraphLiteralNode>
System.IComparable<ILiteralNode>
System.IComparable<IUriNode>
System.IComparable<IVariableNode>
System.IEquatable<INode>
System.IEquatable<IBlankNode>
System.IEquatable<IGraphLiteralNode>
System.IEquatable<ILiteralNode>
System.IEquatable<IUriNode>
System.IEquatable<IVariableNode>
System.Runtime.Serialization.ISerializable
System.Xml.Serialization.IXmlSerializable
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: VDS.RDF.Nodes
Assembly: dotNetRDF.dll
Syntax
public class FloatNode : NumericNode, ILiteralNode, IEquatable<BaseLiteralNode>, IComparable<BaseLiteralNode>, IEquatable<LiteralNode>, IComparable<LiteralNode>, IValuedNode, INode, IComparable<INode>, IComparable<IBlankNode>, IComparable<IGraphLiteralNode>, IComparable<ILiteralNode>, IComparable<IUriNode>, IComparable<IVariableNode>, IEquatable<INode>, IEquatable<IBlankNode>, IEquatable<IGraphLiteralNode>, IEquatable<ILiteralNode>, IEquatable<IUriNode>, IEquatable<IVariableNode>, ISerializable, IXmlSerializable
Constructors
| Improve this Doc View SourceFloatNode(IGraph, Single)
Creates a new Float valued node.
Declaration
public FloatNode(IGraph g, float value)
Parameters
Type | Name | Description |
---|---|---|
IGraph | g | Graph the node belongs to. |
System.Single | value | Float value. |
FloatNode(IGraph, Single, String)
Creates a new Float valued node.
Declaration
public FloatNode(IGraph g, float value, string lexicalValue)
Parameters
Type | Name | Description |
---|---|---|
IGraph | g | Graph the node belongs to. |
System.Single | value | Float value. |
System.String | lexicalValue | Lexical value. |
Methods
| Improve this Doc View SourceAsDecimal()
Gets the decimal value of the float.
Declaration
public override decimal AsDecimal()
Returns
Type | Description |
---|---|
System.Decimal |
Overrides
| Improve this Doc View SourceAsDouble()
Gets the double value of the float.
Declaration
public override double AsDouble()
Returns
Type | Description |
---|---|
System.Double |
Overrides
| Improve this Doc View SourceAsFloat()
Gets the float value.
Declaration
public override float AsFloat()
Returns
Type | Description |
---|---|
System.Single |
Overrides
| Improve this Doc View SourceAsInteger()
Gets the integer value of the float.
Declaration
public override long AsInteger()
Returns
Type | Description |
---|---|
System.Int64 |
Overrides
Implements
System.IEquatable<T>
System.IComparable<T>
System.IEquatable<T>
System.IComparable<T>
System.IComparable<T>
System.IComparable<T>
System.IComparable<T>
System.IComparable<T>
System.IComparable<T>
System.IComparable<T>
System.IEquatable<T>
System.IEquatable<T>
System.IEquatable<T>
System.IEquatable<T>
System.IEquatable<T>
System.IEquatable<T>
System.Runtime.Serialization.ISerializable
System.Xml.Serialization.IXmlSerializable