Class FloatNode
A Valued Node representing float values.
Implements
Inherited Members
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>, IComparable<IRefNode>, IComparable<ITripleNode>, IEquatable<INode>, IEquatable<IBlankNode>, IEquatable<IGraphLiteralNode>, IEquatable<ILiteralNode>, IEquatable<IUriNode>, IEquatable<IVariableNode>, IEquatable<IRefNode>, IEquatable<ITripleNode>
Constructors
| Edit this page View SourceFloatNode(float)
Creates a new Float valued node.
Declaration
public FloatNode(float value)
Parameters
Type | Name | Description |
---|---|---|
float | value | Float value. |
FloatNode(float, string)
Creates a new Float valued node.
Declaration
public FloatNode(float value, string lexicalValue)
Parameters
Type | Name | Description |
---|---|---|
float | value | Float value. |
string | lexicalValue | Lexical value. |
Methods
| Edit this page View SourceAsDecimal()
Gets the decimal value of the float.
Declaration
public override decimal AsDecimal()
Returns
Type | Description |
---|---|
decimal |
Overrides
| Edit this page View SourceAsDouble()
Gets the double value of the float.
Declaration
public override double AsDouble()
Returns
Type | Description |
---|---|
double |
Overrides
| Edit this page View SourceAsFloat()
Gets the float value.
Declaration
public override float AsFloat()
Returns
Type | Description |
---|---|
float |
Overrides
| Edit this page View SourceAsInteger()
Gets the integer value of the float.
Declaration
public override long AsInteger()
Returns
Type | Description |
---|---|
long |