Language:
Discover
By Skill Level
By Category

FGenericPlatformMath::TruncToInt

Choose your OS:

Syntax

static constexpr int32 TruncToInt
(
    float F
)

Remarks

Converts a float to an integer with truncation towards zero.

Truncated integer.

Returns

Truncated integer.

Parameters

Parameter

Description

F

Floating point value to convert

References

Module

Core

Header

Runtime/Core/Public/GenericPlatform/GenericPlatformMath.h