AFunctionalTest::AssertEqual_Float

Assert that two floats are equal within tolerance between two floats.

Windows
MacOS
Linux

References

Module

FunctionalTesting

Header

/Engine/Source/Developer/FunctionalTesting/Classes/FunctionalTest.h

Include

#include "FunctionalTest.h"

Source

/Engine/Source/Developer/FunctionalTesting/Private/FunctionalTest.cpp

Syntax

bool AssertEqual_Float
(
    const float Actual,
    const float Expected,
    const FString & What,
    const float Tolerance,
    const UObject * ContextObject
)

Remarks

Assert that two floats are equal within tolerance between two floats.

Parameters

Parameter

Description

What

A name to use in the message if the assert fails (What: expected {Actual} to be Equal To {Expected} within Tolerance for context '')

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