docs.unity3d.com
    Show / Hide Table of Contents

    Exp

    Menu Path : Operator > Math > Exp

    The Exp Operator raises a base number to a specified power. It supports three common bases: Exp, Exp2, and Exp10.

    Exp raises the number E, which is a mathematical constant approximately equal to 2.718281828459, to a specified power. Exponential functions with a base E are frequently used in mathematics and science.

    Exp2 raises the number 2 to a specified power. For example, Exp2(3) equals to 2*2*2, which is 8.

    Exp10 raises the number 10 to a specified power. For example, Exp10(3) equals to 10*10*10, which is 1000.

    Operator settings

    Property Type Description
    Base Enum Specify the base for the Operator to use. The options are:
    • Base 2: Raises the number 2 to the power you specify in X.
    • Base 10: Raises the number 10 to the power you specify in X.
    • Base E: Raises E (2.718... ) to the power you specify in X.

    Operator properties

    Input Type Description
    X Configurable The power to raise the base to.
    Output Type Description
    Out Dependent The base to the power of X.

    Operator configuration

    To view the Operator's configuration, click the cog icon in the Operator's header. Use the drop-down to select the type for the X port. For the list of types this property supports, see Available types.

    Available types

    You can use the following types for your input ports:

    • float
    • Position
    • Vector
    • Vector2
    • Vector3
    In This Article
    • Operator settings
    • Operator properties
    • Operator configuration
      • Available types
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023