Legacy Documentation: Version 5.1
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

FloatComparer.FloatComparer

Switch to Manual
public FloatComparer()
public FloatComparer(relative: bool)
public FloatComparer(error: float)
public FloatComparer(error: float, relative: bool)

Parameters

relative Should use relative check when comparing values. By default, and absolute check will be used.
error Allowed comparison error. By default, the FloatComparer.kEpsilon is used.

Description

Creates an instance of the comparer.