Читати англійською Редагувати

Поділитися через


Half.Implicit Operator

Definition

Overloads

Implicit(SByte to Half)

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

Implicit(Byte to Half)

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

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.

C#
[System.CLSCompliant(false)]
public static implicit operator Half(sbyte value);

Parameters

value
SByte

The value to convert.

Returns

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

Attributes

Applies to

.NET 10 та інші версії
Продукт Версії
.NET 7, 8, 9, 10

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.

C#
public static implicit operator Half(byte value);

Parameters

value
Byte

The value to convert.

Returns

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

Applies to

.NET 10 та інші версії
Продукт Версії
.NET 7, 8, 9, 10