Class DecimalNode
A Valued Node representing decimal nodes.
Implements
Inherited Members
Namespace: VDS.RDF.Nodes
Assembly: dotNetRdf.dll
Syntax
public class DecimalNode : 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 SourceDecimalNode(decimal)
Creates a new decimal valued node.
Declaration
public DecimalNode(decimal value)
Parameters
Type | Name | Description |
---|---|---|
decimal | value | Decimal value. |
DecimalNode(decimal, string)
Creates a new decimal valued node.
Declaration
public DecimalNode(decimal value, string lexicalValue)
Parameters
Type | Name | Description |
---|---|---|
decimal | value | Decimal value. |
string | lexicalValue | Lexical value. |
Methods
| Edit this page View SourceAsDecimal()
Gets the decimal value.
Declaration
public override decimal AsDecimal()
Returns
Type | Description |
---|---|
decimal |
Overrides
| Edit this page View SourceAsDouble()
Gets the double value of the decimal.
Declaration
public override double AsDouble()
Returns
Type | Description |
---|---|
double |
Overrides
| Edit this page View SourceAsFloat()
Gets the float value of the decimal.
Declaration
public override float AsFloat()
Returns
Type | Description |
---|---|
float |
Overrides
| Edit this page View SourceAsInteger()
Gets the integer value of the decimal.
Declaration
public override long AsInteger()
Returns
Type | Description |
---|---|
long |