Welcome to the Harris Geospatial product documentation center. Here you will find reference guides, help documents, and product libraries.


DEC2HEX

DEC2HEX
  Project : SOHO - CDS
                 
  Name : DEC2HEX
             
  Purpose : Convert a non-negative decimal integer to a hex
  string.
             

Explanation


             
  Use : IDL> dec2hex,decimal [,hex, nchar=nchar, /quiet,
  /upper]
   
  Inputs : decimal - non-negative decimal integer, scalar. All
                        leading
                        blanks are removed.
             
  Opt. Inputs : None
             
  Outputs : See below
             
  Opt. Outputs: hex - the hexadecimal representation of the number.
             
  Keywords : quiet - if not present, the hex form will be output to
                      the
                      terminal.
              nchar - number of characters in the output hexadecimal
                      string.
                      If not supplied, then the hex string will
                      contain no
                      leading zeros.
              upper - converts hex letters to uppercase for output
  Calls : None
             
  Restrictions: Input can only be non-negative integer number.
             
  Side effects: None
             
  Category : Util, numerical
             
  Prev. Hist. : Written by W. Landsman, November, 1990
  Written : CDS version by C D Pike, RAL, 7-Oct-93
             
  Modified : Added /upper keyword, CDP, 20-Dec-1993
              Trap negatives, CDP, 19-May-94
  Version : Version 3, 19-May-94



© 2017 Exelis Visual Information Solutions, Inc. |  Legal
My Account    |    Buy    |    Contact Us