FGenericPlatformMath::Sign

Returns 1, 0, or -1 depending on relation of T to 0

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

template<class T>
static constexpr T Sign
(
    const T A
)

Remarks

Returns 1, 0, or -1 depending on relation of T to 0