IsFloatNearlyZero

From Onset Developer Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
IsFloatNearlyZero

Type: Function
Context: Client
Introduced: v1.0

Description

Checks if a float value is nearly zero.

Syntax

IsFloatNearlyZero(Value)

Parameters

  • Value
    The float value

Return Value

  • Returns true if success.

Example

if IsFloatNearlyZero(GetPlayerHealth()) then
	AddPlayerChat("You are about to die")
end

See also