FGenericPlatformMath::Modf

Breaks the given value into an integral and a fractional part.

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "GenericPlatform/GenericPlatformMath.h"

Syntax

static float Modf
(
    const float InValue,
    float * OutIntPart
)

Remarks

Breaks the given value into an integral and a fractional part.

Returns

The fractional part of the number.

Parameters

Parameter

Description

InValue

Floating point value to convert

OutIntPart

Floating point value that receives the integral part of the number.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss