FGenericPlatformMath::AsFloat

Performs a bit cast of the given unsigned int to float of the same bit width.

Choose your operating system:

Windows

macOS

Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/GenericPlatform/GenericPlatformMath.h

Include

#include "GenericPlatform/GenericPlatformMath.h"

Syntax

static double AsFloat
(
    uint64 U
)

Remarks

Performs a bit cast of the given unsigned int to float of the same bit width.

Returns

A bitwise copy of the 64-bit float in a 64-bit unsigned integer value.

Parameters

Parameter

Description

U

The 64-bit unsigned int to bit cast to a 64-bit float.