BigMul


Node Information
Produces the full product of two 32-bit numbers.
General Information
• This node doesn't have other available options.
Visual
Visual

Ports
Text Type DataType Accepts IsList CustomAcception
A IN Int32 ONE FALSE FALSE
B IN Int32 ONE FALSE FALSE
Result OUT Int64 MULTIPLE FALSE FALSE

Source
namespace Korduene.KGraph.Nodes.Math
{
    [IsNode("BigMul")]
    public class MathBigMul : Node
    {
        Port a = new Port(PortType.IN, typeof(int), AcceptsLinks.ONE, "A");
        Port b = new Port(PortType.IN, typeof(int), AcceptsLinks.ONE, "B");
        Port res = new Port(PortType.OUT, typeof(long), AcceptsLinks.MULTIPLE, "Result");
        public MathBigMul()
        {
            NodeType = NodeType.Function;
            ReturnType = typeof(double);
            a.Value = "0";
            b.Value = "0";
            res.Value = "0";
            this.Name = "BigMul";
            this.AddPort(a);
            this.AddPort(b);
            this.AddPort(res);
            Information = "Produces the full product of two 32-bit numbers.";
        }
        public override string Code()
        {
            return "return Math.BigMul(" + GetValue(a) + ", " + GetValue(b) + ");";
        }
    }
}