Skip to content

Modern Math CZero

Paul Squires edited this page Oct 19, 2026 · 5 revisions

Home › Math Library › Math Library › CZero

CZero

Returns the complex number 0.

Syntax

CZero( ) as Complex

Notes

  • A function, not a constant. const as Complex cannot be initialised from a division by zero, so the whole family is spelled with parentheses for consistency with CNaN and CInfinity, which have no choice.
  • CIsZero( CZero( ) ) is true, and so is CIsReal( CZero( ) ).

Examples

#import "std/numeric"
using numeric

print CToString( CZero( ) )  '' 0+0i
print CIsZero( CZero( ) )    '' true

Library: Math Library
Category: Math Library
Documented under: Members

Clone this wiki locally