docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Arithmetic Operators

    Perform mathematical calculations on input data.

    Page Description
    Absolute Calculate the absolute value of an input.
    Add Calculate the sum of all inputs.
    Divide Divide the first input sequentially by all other inputs.
    Fractional Extract the fractional part of an input.
    Inverse Lerp Calculate the fraction representing how far a value is between two values.
    Lerp Calculate a linear interpolation between two values.
    Modulo Calculate the remainder of dividing of one value by another.
    Multiply Multiply all inputs together.
    Negate Multiply an input value by -1 to invert its sign.
    One Minus Subtract an input value from one.
    Power Raise one input to the power of another input.
    Reciprocal Calculate the result of dividing 1 by an input value.
    Sign Return whether an input is positive, negative, or 0.
    Smoothstep Calculate smooth Hermite interpolation between two values.
    Square Root Calculate the square root of an input.
    Step Compare an input value to a threshold and return whether an input is above or below the threshold
    Subtract Subtract one or more inputs from another input.

    Additional resources

    • Clamp
    • Remap
    • Math
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)