AMX Mod X API Documentation

Signature
#define XS_FLEQ(%1,%2) (((%1) <= ((%2) + XS_FLEQ_TOLERANCE)) && ((%1) >= ((%2) - XS_FLEQ_TOLERANCE)))
Description

Checks if two floating point values are nearly equal.

Parameters
  • %1 The first value to compare.
  • %2 The second value to compare.
Returns

1 if they are nearly equal, 0 otherwise.

Назад
Верх