public void SparqlOperatorApplicationDivideNumeric5() { List <IValuedNode> ns = new List <IValuedNode>() { new DecimalNode(null, 1), new DecimalNode(null, 2) }; IValuedNode expected = new DecimalNode(null, 0.5m); this.TestApplication(SparqlOperatorType.Divide, ns, expected, false); }
public void SparqlOperatorApplicationMultiplyNumeric5() { List <IValuedNode> ns = new List <IValuedNode>() { new DecimalNode(null, 3), new DecimalNode(null, 6) }; IValuedNode expected = new DecimalNode(null, 18); this.TestApplication(SparqlOperatorType.Multiply, ns, expected, false); }
public void SparqlOperatorApplicationSubtractNumeric5() { List <IValuedNode> ns = new List <IValuedNode>() { new DecimalNode(null, 1), new DecimalNode(null, 2) }; IValuedNode expected = new DecimalNode(null, -1); this.TestApplication(SparqlOperatorType.Subtract, ns, expected, false); }
public void SparqlOperatorApplicationAddNumeric2() { List <IValuedNode> ns = new List <IValuedNode>() { new LongNode(null, 1), new DecimalNode(null, 2) }; IValuedNode expected = new DecimalNode(null, 3); this.TestApplication(SparqlOperatorType.Add, ns, expected, false); }
public void Visit(DecimalNode node) { AddAssembly(typeof(decimal).Assembly); Nodes.Push(new DecimalNode(node.Value)); _schemaFromArgs.Add(node.Value); }
public void Visit(DecimalNode node) { node.Accept(_visitor); }
public virtual void Visit(DecimalNode node) { node.Accept(Visitor); }
public AstNode VisitDecimal(DecimalNode n) { Append(n.Value.ToString(CultureInfo.InvariantCulture)); return(n); }
public void Visit(DecimalNode node) { Nodes.Push(new DecimalNode(node.Value)); }
public void Visit(DecimalNode node) { }
public void Visit(DecimalNode node) { AddAssembly(typeof(decimal).Assembly); Nodes.Push(new DecimalNode(node.Value.ToString(CultureInfo.InvariantCulture))); _schemaFromArgs.Add(node.Value); }
public virtual AstNode VisitDecimal(DecimalNode n) { return(n); }
public virtual void Visit(DecimalNode node) { Nodes.Push(new DecimalNode(node.Value.ToString(CultureInfo.InvariantCulture))); }
public void Visit(DecimalNode node) { Nodes.Push(new DecimalNode(node.Value.ToString())); }