Upraviť

Zdieľať cez


Half.Implicit Operator

Definition

Overloads

Implicit(Byte to Half)

Implicitly converts a Byte value to its nearest representable half-precision floating-point value.

Implicit(SByte to Half)

Implicitly converts a SByte value to its nearest representable half-precision floating-point value.

Implicit(Byte to Half)

Source:
Half.cs
Source:
Half.cs
Source:
Half.cs

Implicitly converts a Byte value to its nearest representable half-precision floating-point value.

public:
 static operator Half(System::Byte value);
public static implicit operator Half (byte value);
static member op_Implicit : byte -> Half
Public Shared Widening Operator CType (value As Byte) As Half

Parameters

value
Byte

The value to convert.

Returns

value converted to its nearest representable half-precision floating-point value.

Applies to

Implicit(SByte to Half)

Source:
Half.cs
Source:
Half.cs
Source:
Half.cs

Important

This API is not CLS-compliant.

Implicitly converts a SByte value to its nearest representable half-precision floating-point value.

public:
 static operator Half(System::SByte value);
[System.CLSCompliant(false)]
public static implicit operator Half (sbyte value);
[<System.CLSCompliant(false)>]
static member op_Implicit : sbyte -> Half
Public Shared Widening Operator CType (value As SByte) As Half

Parameters

value
SByte

The value to convert.

Returns

value converted to its nearest representable half-precision floating-point value.

Attributes

Applies to