FGenericPlatformMath::Modf

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

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 Modf
(
    const double InValue,
    double * 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.