home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 15 / CDACTUAL15.iso / cdactual / program / pascal / DML_XREF.ZIP / DMLXREF.ARC / NUM.TBL < prev    next >
Encoding:
Text File  |  1988-12-28  |  2.8 KB  |  61 lines

  1. .R:E
  2. .W:96
  3. .H:...DML NUM UNIT Version 1.00...
  4. .H:...$$Day Mon D, YEAR$$  $$Z:MI A.M.$$     Page $$$...
  5. .H:...TABLE OF CONTENTS...
  6. .H:
  7. .F:
  8. .F:... Copyright (c) 1989, by DML Software Inc. ...
  9. .X:8
  10.  
  11.  
  12.                    DML SOFTWARE INC. TURBO PASCAL LIBRARY
  13.  
  14.  
  15. NUMERIC SUBROUTINES
  16.  
  17.   The following procedures deal with converting numeric information to
  18.   string information, and the reverse.  The integer to string and string to
  19.   integer routines will allow the translation of the bases - base 10, base
  20.   16 and base 2.  The real number conversions only allow base 10.  The date
  21.   routines all have 2 parameters.  One is the "Julian Seconds", or simply
  22.   the number of seconds from a known date.  The other is a record structure
  23.   called DateTime which contains the month, day, year, hours, minutes, and
  24.   seconds from that date.  The DOS function to get the date and time will
  25.   update both the Julian Seconds real number parameter, and the record
  26.   structure.
  27.  
  28.  
  29.  
  30. Procedure                                                                Page  
  31. ---------                                                                ----
  32.  
  33. NUMERIC ROUTINES - CHANGES HIGHLIGHTS (VERSION 1.00)                        1
  34.  
  35. 1) GENERAL NUMERIC FORMATTING AND CONVERSION                                2
  36.  
  37. B2S - Boolean to String Conversion.                                         2
  38. I2S - Integer to String Conversion                                          3
  39. W2S - Word to String Conversion                                             3
  40. L2S - LongInt to String Conversion                                          3
  41. R2S - Real to String Conversion                                             5
  42. D2S - Double to String Conversion                                           5
  43. S2R - String to Real Conversion                                             6
  44. S2D - String to Double Conversion                                           6
  45. StrNumTest - Test Numeric String.                                           7
  46. S2I - String to Integer Conversion                                          8
  47. S2W - String to WordConversion                                              8
  48. S2L - String to LongInt Conversion                                          8
  49.  
  50. 2) DATE AND TIME FORMATTING AND CONVERSION                                  9
  51.  
  52. Numth - Returns a string with the number followed by 'th'                   9
  53. Date2R - Date to Real.                                                     10
  54. R2Date - Real to DateTime                                                  11
  55. Date2S - Date to String.                                                   12
  56. GetDOSDateAndTime - Returns both the number of seconds from 12/31/1840     13
  57. SetDOSDateAndTime - Sets both the DOS date and time                        14
  58.  
  59. 
  60.  
  61.