Please enable JavaScript to view this site.

Function that checks if two variables are equal, except than K_EPSILON.

Syntax

i32 similar (real var1, real var2 [, real epsThr=K_EPSILON])

var1

First variable

var2

Second variable

epsThr

Control threshold. (optional, default K_EPSILON)

Result

Returns:

Condition

Value

Meaning

|var1 - var2|< epsThr

<> 0

Variables are similar unless epsThr

|var1 - var2|> epsThr

0

Variables differ by more than epsThr

Validity

Rule, Task

Note


 

  

Keyboard Navigation

F7 for caret browsing
Hold ALT and press letter

This Info: ALT+q
Page Header: ALT+h
Topic Header: ALT+t
Topic Body: ALT+b
Contents: ALT+c
Search: ALT+s
Exit Menu/Up: ESC