Language:
Discover
By Skill Level
By Category

FGenericPlatformMath::RoundToDouble

Choose your OS:

Syntax

static double RoundToDouble
(
    double F
)

Remarks

Converts a double to the nearest integer. Rounds up when the fraction is .5

The nearest integer to 'F'.

Returns

The nearest integer to 'F'.

Parameters

Parameter

Description

F

Floating point value to convert

References

Module

Core

Header

Runtime/Core/Public/GenericPlatform/GenericPlatformMath.h