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

ROUNDN

ROUNDN

Name


      ROUNDN

Purpose


      Round values to n decimal places.

Category


Calling Sequence


      v2 = roundn(v1, n)

Inputs


      v1 = input value (may be an array). in
      n = number of decimal places to round to (def=0). in

Keyword Parameters


Keywords


        /STRING return value(s) as string(s).
        FORMAT=fmt Format to use with /STRING instead of default.

Outputs


      v2 = returned rounded value(s). out

Common Blocks


Notes


      Note: v2 has same data type as v1. Giving an incorrect
        format may give invalid rounding.

Modification History


      R. Sterner, 2003 Aug 04
      R. Sterner, 2005 Apr 08 --- Added /L64 to round.
  Copyright (C) 2003, 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