Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/FGenericPlatformMath
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static float AsFloat
(
uint32 U |
Performs a bit cast of the given unsigned int to float of the same bit width. | GenericPlatform/GenericPlatformMath.h | |
static double AsFloat
(
uint64 U |
Performs a bit cast of the given unsigned int to float of the same bit width. | GenericPlatform/GenericPlatformMath.h |
AsFloat(uint32)
Description
Performs a bit cast of the given unsigned int to float of the same bit width.
| Name | AsFloat |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/GenericPlatform/GenericPlatformMath.h |
| Include Path | #include "GenericPlatform/GenericPlatformMath.h" |
static float AsFloat
(
uint32 U
)
A bitwise copy of the 32-bit float in a 32-bit unsigned integer value.
Parameters
| Name | Remarks |
|---|---|
| U | The 32-bit unsigned int to bit cast to a 32-bit float. |
AsFloat(uint64)
Description
Performs a bit cast of the given unsigned int to float of the same bit width.
| Name | AsFloat |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/GenericPlatform/GenericPlatformMath.h |
| Include Path | #include "GenericPlatform/GenericPlatformMath.h" |
static double AsFloat
(
uint64 U
)
A bitwise copy of the 64-bit float in a 64-bit unsigned integer value.
Parameters
| Name | Remarks |
|---|---|
| U | The 64-bit unsigned int to bit cast to a 64-bit float. |