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

STR_CLIPTRAIL0

STR_CLIPTRAIL0

Name


      STR_CLIPTRAIL0

Purpose


      Clip trailing zeros equally for given array of numbers.

Category


Calling Sequence


      out = str_cliptrail0(in)

Inputs


      in = Input array of numbers (floats). in

Keyword Parameters


Keywords


        NDEC=nd Returned number of decimal places needed.
          nd is 0 if all integers. nd0 is -1 if no good
          solution could be found.

Outputs


      out = returned string array. out

Common Blocks


Notes


      Note: clips each element to same number of decimal places
        determined by max needed. Only works for a limited
        number of decimal places.

Modification History


      R. Sterner, 2002 Jan 14
      R. Sterner, 2002 Jan 24 --- Fixed for integers and #s like 1.025.
      R. Sterner, 2003 Mar 18 --- Complete rewrite.
      R. Sterner, 2003 Sep 12 --- Added comments.
  Copyright (C) 2002, 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.



© 2024 NV5 Geospatial Solutions, Inc. |  Legal
   Contact Us