Documentation index for AI agents (llms.txt) A Markdown version of every page is available: request the page's source under /docs/, follow the "alternate" link in this page's head, or start from /llms.txt.
Visual Script logo Manual

PI#

Constant / PI

  • Can Read

  • Cannot Write

Description#

Returns the ratio of the circumference of a circle to its diameter

Code#

using System;
using UnityEngine;
using VisualScript.Icons;

namespace VisualScript.Runtime
{
    [Get]
    
    [Title("PI")]
    [Category("Constant/PI")]
    
    [Description("Returns the ratio of the circumference of a circle to its diameter")]
    [Image(typeof(IconPI), ColorTheme.Type.Yellow)]
    
    [Serializable]
    public class TypeNumberConstantPI : TypeNumber
    {
        public override double GetPreview(GameObject source) => Math.PI;

        public override double Get(Args args) => Math.PI;

        public override string ToString()
        {
            return "PI";
        }
    }
}
Visual Script logoVisual Script © Catsoft Works 2026. All rights reserved.