>  Docs Center  >  Libraries  >  Motley  >  MGH_FORMAT_FLOAT

MGH_FORMAT_FLOAT

MGH_FORMAT_FLOAT

Name


  MGH_FORMAT_FLOAT

Purpose


  This function returns a string representation of a floating-point
  numeric value. It is designed for use in widget applications,
  where one wants an editable value, with no extraneous digits, that
  can be converted easily back to numeric form.

Calling Sequence


  Result = MGH_FORMAT_FLOAT(Value)

Positional Parameters


  Value (input, numeric, scalar or array)
    The value to be formatted.

Return Value


  The function returns a string with the same shape as the input.

Dependencies


  Tested on IDL 5.5 win32 (x86). It may well fail on other
  platforms, especially with NaNs.
###########################################################################
  This software is provided subject to the following conditions:
  1. NIWA makes no representations or warranties regarding the
    accuracy of the software, the use to which the software may
    be put or the results to be obtained from the use of the
    software. Accordingly NIWA accepts no liability for any loss
    or damage (whether direct of indirect) incurred by any person
    through the use of or reliance on the software.
  2. NIWA is to be acknowledged as the original author of the
    software where the software is used or presented in any form.
###########################################################################

Modification History


  Mark Hadfield, 2000-05:
      Written.



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