ZERO

This document is no longer available beyond version 21. Information can now be found here: ZERO for version 24

Applies to Altium Designer version: 21

Parent page: System Query Functions - Arithmetic Functions

Summary

Returns an integral number whose value is either 0 or 1, depending upon the parameter's numeric value. If that numeric value is zero, the number returned is 0; otherwise the number returned is 1.

Syntax

ZERO(X : Number / Numeric_String) : Number

Example Usage

ZERO(5.33)
Returns 1.

ZERO(-5.33)
Returns 1.

ZERO(0)
Returns 0.

 

Note

The features available depend on your level of Altium Designer Software Subscription.