Decimal


Node Information
Decimal, a numeric value.
General Information
• This node doesn't have other available options.
Visual
Visual

Ports
Text Type DataType Accepts IsList CustomAcception
Value OUT Decimal MULTIPLE FALSE FALSE

Source
namespace Korduene.KGraph.Nodes.Variables
{
    [IsNode("Decimal")]
    public class VarDecimal : Node
    {
        Port val = new Port(PortType.OUT, typeof(decimal), AcceptsLinks.MULTIPLE, "Value");
        public VarDecimal()
        {
            NodeType = KGraph.NodeType.Variable;
            ReturnType = typeof(decimal);
            val.Value = "0";
            this.Name = "Decimal";
            this.AddPort(val);
            Information = "Decimal, a numeric value.";
        }
        public override string Code()
        {
            return val.Value + "m";
        }
    }
}