>  Docs Center  >  Libraries  >  JHU/APL/S1R  >  ZERO_INT

ZERO_INT

ZERO_INT

Name


      ZERO_INT

Purpose


      Return a zero of the requested data type.

Category


Calling Sequence


      z = zero_int(val)

Inputs


      val = given value. in

Keyword Parameters


Keywords


        /NULL For strings return a null string instead of '0'.
            Does not effect other data types.

Outputs


      z = returned zero of the same data type. out

Common Blocks


Notes


      Note: Undefined, Structures, Pointers, and Objects
        return a 16 bit 0. To get a 1 of the same data type do:
        one = zero_int(val)+1B (except for String type).
      Useful for promoting a value or array to a higher
      precision data type. Some examples:
      If A is long int and B is int then B+zero_int(A)
      will be long int.

Modification History


      R. Sterner, 1999 Jun 30
      R. Sterner, 2004 Mar 30 --- Added /NULL option for string type.
  Copyright (C) 1999, Johns Hopkins University/Applied Physics Laboratory
  This software may be used, copied, or redistributed as long as it is not
  sold and this copyright notice is reproduced on each copy made. This
  routine is provided as is without any express or implied warranties
  whatsoever. Other limitations apply as described in the file disclaimer.txt.



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