docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method IsUndefined

    IsUndefined(float)

    Checks whether a value is undefined (PositiveInfinity, NegativeInfinity, or NaN).

    Declaration
    public static bool IsUndefined(this float value)
    Parameters
    Type Name Description
    float value

    The float value.

    Returns
    Type Description
    bool

    True if the value is infinity or NaN (not a number), otherwise false.

    See Also
    IsInfinity(float)
    IsNaN(float)
    In This Article
    Back to top
    Copyright © 2024 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)