docs.unity.cn
    Show / Hide Table of Contents

    Operator Implicit

    Implicit(half to Single)

    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
    Single

    The converted single precision float value.

    Implicit(half to Double)

    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.

    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Tuesday, March 29, 2022
    Terms of use