Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


implicit operator float

Implicitly converts a half value to a float value.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Operator
  • Namespace: Unity.Mathematics
  • Assembly: UnityEngine.MathematicsModule

implicit operator float(Singl)

Implicitly converts a half value to a float value.
public static implicit operator float(half d)

Parameters

The half value to convert to a single precision float.

Returns

Type

Description

floatThe converted single precision float value.

implicit operator double(Doubl)

Implicitly converts a half value to a double value.
public static implicit operator double(half d)

Parameters

The half value to convert to double precision float.

Returns

Type

Description

doubleThe converted double precision float value.