docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Operator implicit operator

    implicit operator float(half)

    Implicitly converts a half value to a float value.

    Declaration
    public static implicit operator float(half d)
    Parameters
    Type Name Description
    half d

    The half value to convert to a single precision float.

    Returns
    Type Description
    float

    The converted single precision float value.

    implicit operator double(half)

    Implicitly converts a half value to a double value.

    Declaration
    public static implicit operator double(half d)
    Parameters
    Type Name Description
    half d

    The half value to convert to double precision float.

    Returns
    Type Description
    double

    The converted double precision float value.

    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)