>  Docs Center  >  Libraries  >  Daithi  >  ODD

ODD

ODD

Name


ODD

Purpose


This function returns 1 if the input is odd, 0 otherwise.

Category


Mathematics

Calling Sequence


Result = ODD( Yin )

Inputs


Yin: A scalar or array of type integer.

Outputs


Result: Returns 1 if Yin is odd, 0 otherwise.

Procedure


This function determines whether Yin is divisible by 2.

Example


Determine if 3 is odd.
result = odd( 3 )

Modification History


  Written by: Daithi A. Stone, 2000-06-09.
Modified: DAS, 2000-07-06 (removed LENGTH.pro).
Modified: DAS, 2000-07-10 (removed for loops).
Modified: DAS, 2000-08-23 (fixed bad bug).



© 2019 Harris Geospatial Solutions, Inc. |  Legal
My Account    |    Store    |    Contact Us