FGenericPlatformMath::Frac

Returns the fractional part of a float.

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 float Frac
(
    float Value
)

Remarks

Returns the fractional part of a float.

Returns

A float between >=0 and < 1.

Parameters

Parameter

Description

Value

Floating point value to convert