Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


f16

Represents a 16-bit floating point value (half precision) Warning: this type may not be natively supported by your hardware, or its usage may be suboptimal
Read time 1 minuteLast updated 12 days ago

Definition

public readonly struct f16 : IEquatable<f16>

Constructors

Constructor

Description

f16(System.Single)Constructs a half value from a float value.
f16(Unity.Burst.Intrinsics.f16)Constructs a half value from a half value.

Methods

Method

Description

EqualsReturns true if the half is equal to a given half, false otherwise.
GetHashCodeReturns a hash code for the half.

Operators

Operator

Description

operator ==Returns whether two f16 values are equal.
operator !=Returns whether two f16 values are different.