home *** CD-ROM | disk | FTP | other *** search
- .R:E
- .W:96
- .H:...DML NUM UNIT Version 1.00...
- .H:...$$Day Mon D, YEAR$$ $$Z:MI A.M.$$ Page $$$...
- .H:...TABLE OF CONTENTS...
- .H:
- .F:
- .F:... Copyright (c) 1989, by DML Software Inc. ...
- .X:8
-
-
- DML SOFTWARE INC. TURBO PASCAL LIBRARY
-
-
- NUMERIC SUBROUTINES
-
- The following procedures deal with converting numeric information to
- string information, and the reverse. The integer to string and string to
- integer routines will allow the translation of the bases - base 10, base
- 16 and base 2. The real number conversions only allow base 10. The date
- routines all have 2 parameters. One is the "Julian Seconds", or simply
- the number of seconds from a known date. The other is a record structure
- called DateTime which contains the month, day, year, hours, minutes, and
- seconds from that date. The DOS function to get the date and time will
- update both the Julian Seconds real number parameter, and the record
- structure.
-
-
-
- Procedure Page
- --------- ----
-
- NUMERIC ROUTINES - CHANGES HIGHLIGHTS (VERSION 1.00) 1
-
- 1) GENERAL NUMERIC FORMATTING AND CONVERSION 2
-
- B2S - Boolean to String Conversion. 2
- I2S - Integer to String Conversion 3
- W2S - Word to String Conversion 3
- L2S - LongInt to String Conversion 3
- R2S - Real to String Conversion 5
- D2S - Double to String Conversion 5
- S2R - String to Real Conversion 6
- S2D - String to Double Conversion 6
- StrNumTest - Test Numeric String. 7
- S2I - String to Integer Conversion 8
- S2W - String to WordConversion 8
- S2L - String to LongInt Conversion 8
-
- 2) DATE AND TIME FORMATTING AND CONVERSION 9
-
- Numth - Returns a string with the number followed by 'th' 9
- Date2R - Date to Real. 10
- R2Date - Real to DateTime 11
- Date2S - Date to String. 12
- GetDOSDateAndTime - Returns both the number of seconds from 12/31/1840 13
- SetDOSDateAndTime - Sets both the DOS date and time 14
-
-
-